Hex Calculator

Hexadecimal (base 16) uses the digits 0–9 and A–F. Programmers use it for memory addresses, colours and byte values.

Results update as you type.

Result (hex)

B8E

Result in decimal
2,958
Inputs in decimal
2,703 + 255
Result in binary
1011 1000 1110

About this calculator

Enter two hex numbers, with or without 0x, and choose an operation.

How to use it

  1. Enter the first hex number.
  2. Choose the operation.
  3. 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

  1. 0A8F is 2,703 and FF is 255.
  2. 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.