Base input
Number conversion
Number Base Converter
Convert exact integers from any base 2 through 36 to any other base. View binary, octal, decimal, hexadecimal, grouped bytes, Unicode hints, validation and calculation steps.
Common bases
Binary, octal, decimal and hexadecimal
Developer view
Calculation steps
Source base to decimal
Decimal to destination base
How to convert from any base to any base
Common base reference table
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 1 0000 | 20 | 10 |
| 255 | 1111 1111 | 377 | FF |
Popular base conversions
Number base converter FAQ
What bases are supported?
Integer conversion is supported from base 2 through base 36.
Can I convert prefixed values such as 0xFF?
Yes. Prefixes 0x, 0b and 0o are accepted when they match hexadecimal, binary and octal input.
Does the converter lose precision on large integers?
No. It uses JavaScript BigInt and does not convert values through floating-point Number arithmetic.
Why does base 36 use letters?
Base 36 uses digits 0-9 and letters A-Z, providing 36 digit symbols.
Handy Tool Lab
How this tool is maintained
Handy Tool Lab builds and tests each tool around repeatable examples. Formula-based tools use published references when a suitable source exists; browser utilities are checked with representative inputs and output cases.