Number Base Converter — Binary, Octal, Decimal, Hex
Enter a number in binary, octal, decimal, or hexadecimal and see it converted into all four bases at the same time.
📝 Enter a Value
📊 Result — All Four Bases
Disclaimer: This tool performs standard mathematical calculations for educational and reference purposes. Always double-check results independently for graded coursework or production code.
What a Number Base Is
A number base (or "radix") is simply how many unique digit symbols a counting system uses before it rolls over into a new column. Decimal, the system most people use daily, is base 10 and uses ten symbols (0–9). Computers work natively in binary (base 2), using only 0 and 1, and programmers often use octal (base 8) or hexadecimal (base 16) as shorter, more readable stand-ins for long binary strings.
Valid Digits by Base
- Binary (base 2): digits 0 and 1 only
- Octal (base 8): digits 0 through 7
- Decimal (base 10): digits 0 through 9
- Hexadecimal (base 16): digits 0 through 9, plus letters A through F (A=10 … F=15)
Worked Example
Convert the decimal number 255 into the other three bases.
- Binary: 255 = 11111111
- Octal: 255 = 377
- Hexadecimal: 255 = FF