About this calculator
Enter two hex numbers, with or without 0x, and choose an operation.
How to use it
- Enter the first hex number.
- Choose the operation.
- Enter the second number.
The formula
Each hex digit is worth 16 raised to its position from the right
- A–F
- 10 to 15
Worked example
0A8F + FF
- 0A8F is 2,703 and FF is 255.
- Sum = 2,958 = B8E in hex.
What the result means
Each hex digit is exactly four binary digits, which is why programmers like it.
Assumptions
- Non-negative inputs for bitwise operations.
Limitations
- Two’s complement is not shown.
Frequently asked questions
What is FF in decimal?
255.
How do I convert hex to binary?
Replace each hex digit with its four-bit binary value.
Can I type 0x?
Yes, the prefix is ignored.
Last reviewed on 3 October 2026. Found a mistake? Tell us.

