Convert between hexadecimal, decimal, binary and octal.
How hex is worked out
Enter a value and its base to see it in hex, decimal, binary and octal. Hexadecimal is base-16, using 0โ9 and AโF.
Using the calculator
- Enter your figures in the fields provided.
- The result updates as you type.
- Review the breakdown below the main number.
Formula reference
convert to decimal, then to the target base
The default scenario, worked through
Worked through, a value of 255 produces a result of FF. Underneath, Binary comes out at 11111111 and Octal at 377. Change any field and every figure updates as you type.
Questions people ask about this
What is hexadecimal?
Base-16 โ a compact way to write binary. 255 is FF.
Why do programmers use hex?
It maps neatly to bytes, making binary values shorter and easier to read.