esc
Calculators

Hex calculator:
hexadecimal arithmetic and conversion

Type two hex numbers such as 1F4 and A0, choose the operation and read the answer in hex, decimal and binary. Conversion mode shows how each digit adds up.

1F4 + A0294
In decimal
500 + 160 = 660
In binary
1010010100

How to use Hex calculator

  1. 01Choose arithmetic or conversionHex or decimal input.
  2. 02Type the numbers0–9 and A–F.
  3. 03Read the resultHex, decimal and binary.
File character arranging marked pages

Sixteen digits: 0–9 and A–F.

Hexadecimal is base 16. The digits A to F stand for 10 to 15, and each place is worth 16 times the one to its right, so 1F4 = 1 × 256 + 15 × 16 + 4 = 500. Programmers use hex because one hex digit is exactly four bits, which keeps memory addresses, colour codes and byte values short. 0x and # prefixes are accepted.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What is FF in decimal?

F is 15, so FF = 15 × 16 + 15 = 255, the largest value one byte can hold.

How do I convert 2026 to hex?

2026 ÷ 16 = 126 r 10 (A), 126 ÷ 16 = 7 r 14 (E), 7 ÷ 16 = 0 r 7. From the bottom up that is 7EA.

What is 1F4 + A0?

1F4 is 500 and A0 is 160, so the sum is 660, which is 294 in hex.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.