Hex Calculator

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

  1. Enter your figures in the fields provided.
  2. The result updates as you type.
  3. 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.