Skip to main content
1+1
EN
All calculators

Categories

Hexadecimal calculator

Result

Fill in the fields to see your result.

How it works

Every operation is computed exactly using arbitrary-precision integers internally, then converted to hex for display, with the decimal equivalent shown alongside as a cross-check — useful since hex arithmetic by hand is easy to get wrong once a carry crosses past 9 into A.

Division uses whole-number (integer) division: the result is truncated, with the leftover shown separately as a remainder, the same convention as long division.

Formulas used

Reading a hex number

Each digit represents a power of 16, read right to left: 1, 16, 256, 4096, …

Worked examples

Hex addition

8AB + B78 = 1423 in hex, or 2219 + 2936 = 5155 in decimal.

Converting to decimal

FF in hex is 255 in decimal — two hex digits of F is the largest value a byte can hold, the same number binary's eight 1s reach.

Assumptions and limits

  • All numbers are treated as non-negative (unsigned) hexadecimal integers.
  • Division is integer (whole-number) division, with any remainder shown separately.

Frequently asked questions

Why is hexadecimal used in computing?

Each hex digit maps exactly onto 4 binary bits, so a byte (8 bits) is always exactly 2 hex digits — a much more compact and readable way to write binary values like memory addresses or color codes than spelling out every 0 and 1.

What do A through F mean?

They extend the digits beyond 9 up to 15: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15 — hexadecimal needs sixteen distinct symbols since it is base 16.

Where do I see hex numbers in everyday computing?

Color codes in web design (#FF5733), memory addresses, MAC addresses and error codes are all commonly written in hex, largely because of its clean relationship to binary.

Is hex case-sensitive?

No — A–F and a–f are treated the same; this calculator accepts either and displays results in uppercase.

Updated