Enter two hexadecimal values and choose an operation to calculate the hex and decimal result.
How to Use the Hex Calculator
Enter two hex values and pick an operation — the decimal equivalents show alongside the hex result, so the conversion is easy to sanity-check either direction.
Every hex digit maps to exactly four binary bits, since 16 is 2⁴ — which means a byte is always precisely two hex digits, no remainder, no awkward fit. That's the entire reason computing uses base 16 at all: it's a compact, human-readable stand-in for long strings of 1s and 0s, used everywhere from memory addresses to color codes.
This Hex Calculator adds, subtracts, multiplies, or divides two hex values by converting each to decimal, doing the math there, and converting the result back. Each digit position is a power of 16 rather than 10:
hex "1A" = (1 × 16¹) + (10 × 16⁰) = 26 in decimal
Sixteen digit symbols means decimal's 0–9 runs out, so A through F fill in for 10 through 15 — A is 10, F is 15, nothing more mysterious than that.