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.
base 2-36
Common bases
Binary, octal, decimal and hexadecimal
Binarybase 2
Octalbase 8
Decimalbase 10
Hexadecimalbase 16
Grouped binary4-bit groups
Grouped hexbyte groups
Developer view
ASCII / Unicode
Bit length
Byte length
Sign
Calculation steps
Source base to decimal
Decimal to destination base
How to convert from any base to any base
1. Source base to decimalMultiply each digit by the source base raised to its position, starting at position 0 on the right.
2. Decimal to target baseRepeatedly divide by the target base and collect each remainder as the next digit.
3. Digit values above 9A=10 through Z=35 provide the extra digit symbols.
4. Integer scopeExact integer conversion covers binary, hex, bytes, identifiers and most programming use cases.
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.