Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36. Arbitrary precision, so large values stay exact.
11111111377255ff73How to use the Number Base Converter
- Pick the input base. Tell the converter which base your number is already written in.
- Type the number. Digits are validated against that base as you type.
- Read every base at once. Binary, octal, decimal and hex are shown together.
Frequently asked questions
- Does this lose precision on large numbers?
- No. Conversion uses arbitrary-precision integers rather than floating point, so values beyond the usual 53-bit safe range convert exactly instead of being silently rounded.
- Why does hexadecimal use letters?
- Base 16 needs sixteen distinct digits and the decimal system only supplies ten, so A to F stand in for the values ten to fifteen. The same idea extends up to base 36, which uses the whole alphabet.
- What is the highest base supported?
- Base 36, because that is where the digits zero to nine and the twenty-six letters run out. Anything higher needs an agreed alphabet, and there is no single standard for one.
- Can I convert negative numbers?
- Yes, a leading minus sign is preserved across every base. Two-complement representations are a different question, since they depend on a fixed word size rather than on the base alone.
Learn more
Related tools
- Developer Tools
Base64 Encoder & Decoder
Encode text to Base64 and decode it back, right in your browser. Handles Unicode correctly and never sends your data anywhere.
- Developer Tools
SHA Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, computed in your browser with the built-in Web Crypto API.
- Converters
Color Converter
Convert colors between HEX, RGB, HSL and OKLCH. Pick a color or paste any format, and see every equivalent at once.
- Converters
CSV to JSON Converter
Turn CSV into JSON in your browser. Handles quoted fields, embedded commas and line breaks, with a choice of delimiter and header row.
- Converters
Unix Timestamp Converter
Convert Unix timestamps to readable dates and back. Handles seconds and milliseconds, your local time zone and UTC, live as you type.
- Text Tools
Case Converter
Convert text between upper case, lower case, title case, sentence case, camelCase, snake_case and kebab-case, all at once.
Last updated