Conversion
Number Base Converter
Convert a decimal number into binary, hexadecimal and octal.
Did this calculator solve your problem today?
✓ Thank you for your feedback!
Report issue to loopingon.com
Sponsored
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.
Frequently Asked Questions
Why is hex used in computing?
Each hex digit maps to exactly 4 binary bits, making long binary values compact and readable.
Advertisement