Decimal to Hexadecimal Converter

Convert a decimal number to hex, binary and octal.

Hexadecimal FF
Binary 11111111
Octal 377

Formula: repeatedly divide by 16 (or 2, 8)

Step-by-step with your numbers:
1. Values used:
2. Decimal = 255
3.
4. Hexadecimal = FF
5. Binary = 11111111
6. Octal = 377
Did we solve your problem today?

Convert a whole decimal number to hexadecimal.

The math behind it

Repeatedly divide by 16; the remainders (0–9, A–F) form the hex number.

Worked example

255 → FF.

FAQ

Why hex?

Compactly represents binary — each hex digit = 4 bits.