Number Base Converter
Convert a decimal number into binary, hexadecimal and octal.
Convert a whole decimal number into the binary, hexadecimal and octal systems used in computing.
The math behind it
To convert to base b, divide by b repeatedly and collect the remainders from last to first. Binary uses 0โ1, octal 0โ7, hex 0โ9 and AโF.
Worked example
255 โ binary 11111111, hex FF, octal 377.
FAQ
Why is hex used in computing?
Each hex digit maps to exactly 4 binary bits, making long binary values compact and readable.