Base Conversion Calculator
Convert numbers between different number bases including binary, octal, decimal, hexadecimal, and custom bases.
Input Number
Conversions
Binary (Base 2)
11111111
Octal (Base 8)
377
Decimal (Base 10)
255
Hexadecimal (Base 16)
FF
Base 2
11111111
How Base Conversion Works
Converting to Decimal
Each digit d at position i: d × base^i
Example: 1010 (binary) = 1×8 + 0×4 + 1×2 + 0×1 = 10
Converting from Decimal
Divide by base, remainder is digit
Example: 10 ÷ 2 = 5 R0, 5 ÷ 2 = 2 R1, 2 ÷ 2 = 1 R0, 1 ÷ 2 = 0 R1 → 1010