Hex Calculator

Enter two hex numbers and an operation to get the result in hex, plus decimal, binary and octal. For example, 1F4 + A7 = 29B (500 + 167 = 667).

By Mustansar Iqbal Khan, independent developerUpdated

Hex Calculator

Result

Working it out…

How does hexadecimal work?

Hex is base 16. Digits run 0–9 then A–F, where A = 10 and F = 15. Each place is worth 16 times the one to its right.

1F4₁₆ = 1×256 + 15×16 + 4 = 500

Where is hex used?

  • Web colors such as #3554E8
  • Memory addresses and machine code
  • MAC addresses and IPv6

Frequently asked questions

What is FF in decimal?

255.

How do I convert hex to binary?

Replace each hex digit with its 4-bit binary value: A = 1010, F = 1111.

Does division give decimals?

No. It returns the whole-number quotient, like integer division in code.