Free Online Calculator

Hex Calculator

Do arithmetic and bitwise operations on hexadecimal numbers.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: adding hex numbers

Hex uses digits 0–9 and A–F (A = 10 … F = 15). 1A3F + FF = 1B3E.

Overview of the Hex Calculator

Hexadecimal (base 16) is a compact way to write binary numbers — each hex digit stands for four bits. This calculator adds, subtracts, multiplies and divides hex numbers, applies AND, OR and XOR, accepts an optional 0x prefix and shows every result in hex, decimal, binary and octal. The second tool converts between all four bases.

Hex is common in programming, colour codes (#FF5733), memory addresses and MAC addresses. For base 2 see the Binary Calculator; for text encodings see Base64 Encode / Decode.

How We Calculate

The calculator applies the standard method step by step.

  1. Check that every character is 0–9 or A–F (case does not matter).
  2. Convert to exact integers and perform the operation.
  3. Add column by column; when a column reaches 16 or more, carry 1.
  4. Convert the result back to hexadecimal, decimal, binary and octal.
decimal = Σ digit × 16ᵏ   e.g. 1A3F₁₆ = 4096 + 2560 + 48 + 15 = 6719
Worked example — hex calculator
ItemValue
Binary (base 2)1101100111110
Octal (base 8)15476
Decimal (base 10)6,974
Hexadecimal (base 16)1B3E
The inputs in every base
BaseFirst numberSecond number
Binary110100011111111111111
Octal15077377
Decimal6719255
Hexadecimal1A3FFF
Hexadecimal operations
OperationResult
1A3F + FF1B3E
FF + 1100
FF × 10FF0
F0 AND 3C30
A ÷ 33
Decimal, binary, octal and hexadecimal 0–20
DecimalBinaryOctalHex
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010
17100012111
18100102212
19100112313
20101002414

Hex Calculator — Frequently Asked Questions

How do I add hexadecimal numbers?

Add column by column using values 0–15; if the sum is 16 or more, write the remainder and carry 1. A + 7 = 11₁₆ (17).

How do I convert hex to decimal?

Multiply each digit by a power of 16 (from the right) and add. FF₁₆ = 15 × 16 + 15 = 255.

How do I convert hex to binary?

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

What do A–F mean in hex?

They are the digits for 10 to 15: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

What is 0x in front of a hex number?

A prefix used in programming to show that the number is hexadecimal, as in 0xFF.

Where is hexadecimal used?

Colour codes in web design, memory addresses, machine code, MAC addresses and debugging.

How is the hex calculator calculated?

It uses the standard method: decimal = Σ digit × 16ᵏ   e.g. 1A3F₁₆ = 4096 + 2560 + 48 + 15 = 6719 The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

6 + 4 =
Call WhatsApp