Number Base Converter
Convert whole numbers between any bases from 2 to 36, such as binary, octal, decimal, hexadecimal and base 36. Exact for numbers of any size.
- 100% free
- No signup
- Runs in your browser
How to use
- Type the number you want to convert.
- Enter the base it is written in (From base) and the base you want (To base), each between 2 and 36.
- The converted number appears as you type. Letters A–Z stand for the digit values 10 to 35.
Common bases
| Base | Digits |
|---|---|
| Binary (base 2) | 0 1 |
| Octal (base 8) | 0–7 |
| Decimal (base 10) | 0–9 |
| Hexadecimal (base 16) | 0–9, A–F |
| Base 36 | 0–9, A–Z |
In base b, each position is worth b times the position to its right. The number 2A in base 16 is 2 × 16 + 10 = 42 in base 10.
The converter works with the exact integer value, so even very long numbers convert without rounding. Fractions and negative numbers are not supported.
Examples
| Example | Result |
|---|---|
| 255 from base 10 to base 16 | FF |
| 777 from base 8 to base 10 | 511 |
| 1010 from base 2 to base 8 | 12 |
| 1000000 from base 10 to base 36 | LFLS |
Tips: Hex uses 0-9 and A-F; for bases above 10, letters represent digits.
FAQ
Typically base 2 through 36; digits 0–9 and A–Z are used for values 10 and above.
Base 36 uses all digits and letters, so it writes large numbers very compactly. It is used for short IDs and URL shorteners: 1,000,000 is just LFLS.
First convert the number to base 10 by adding digit × base^position, then divide by the target base again and again and read the remainders from last to first.
Yes. a–z and A–Z mean the same digit values; the result is shown in uppercase.