Base input
Number conversion
Number Base Converter
Convert integers from any base 2 through base 36 to any other base. Get binary, octal, decimal, hexadecimal, grouped byte output, ASCII hints, validation, and calculation steps in one place.
Common bases
Binary, octal, decimal, and hexadecimal
Binary11111111base 2
Octal377base 8
Decimal255base 10
HexadecimalFFbase 16
Grouped binary1111 11114-bit groups
Grouped hexFFbyte groups
Developer view
ASCII / UnicodeU+00FF: y with diaeresis
Bit length8 bits
Byte length1 byte
SignPositive integer
Calculation steps
Base to decimal
255 = 2 x 10^2 + 5 x 10^1 + 5 x 10^0 = 255
Decimal to destination base
255 / 16 = 15 remainder 15 (F) 15 / 16 = 0 remainder 15 (F) Read remainders upward: FF
How to convert from any base to any base
1. Source base to decimalMultiply each digit by the source base raised to the digit position, starting from position 0 at the right.
2. Decimal to target baseDivide by the target base repeatedly and collect each remainder as the next digit.
3. Digit values above 9A=10, B=11, C=12, D=13, E=14, F=15, and so on through Z=35.
4. Integer scopeThis converter focuses on integers, which covers most binary, hex, byte, ID, and programming use cases.
Common base reference table
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 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
FAQ
What bases are supported?
This converter supports integer conversion from base 2 through base 36.
Can I convert hexadecimal values like 0xFF?
Yes. Prefixes such as 0x, 0b, and 0o are accepted when they match the selected base.
Why does base 36 use letters?
Base 36 uses digits 0-9 plus letters A-Z, giving 36 possible digit symbols.