Conversion

Number Base Converter

Convert a decimal number into binary, hexadecimal and octal.

Parameters Live Compute
Calculated Output
Binary 11111111
Hexadecimal FF
Octal 377
Formula: repeatedly divide by the base and read the remainders
Step-by-Step Breakdown
1. Values used:
2. Decimal number = 255
3.
4. Binary = 11111111
5. Hexadecimal = FF
6. Octal = 377
Did this calculator solve your problem today?
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