Quick start
- Enter the first hex number using digits 0-9 and letters A-F.
- Choose Add, Subtract, Multiply, or Divide.
- Enter the second hex number.
- Press Calculate hex.
- Read the hex answer, decimal answer, binary answer, and steps.
What hexadecimal means
Hexadecimal is base 16. It uses 0-9 for the first ten values and A-F for values 10 through 15. Each place value is a power of 16, so A3 means 10 x 16 plus 3, which equals 163 in decimal.
The calculator accepts uppercase or lowercase letters. It also accepts an optional 0x prefix, so 0xFF and FF mean the same value.
Hex arithmetic
Addition, subtraction, and multiplication return a hex answer with matching decimal and binary versions. For example, A3 + 1F equals C2, which is 194 in decimal.
Hex division returns a quotient. If the division is not even, the calculator also shows the remainder. For example, 2F / A equals 4 remainder 7.
Converting hex, decimal, and binary
Use the conversion panel when you only need to change number systems. Hex to decimal turns a base-16 value such as 2A into 42. Decimal to hex turns a whole decimal number such as 42 into 2A.
The same panel also shows hex to binary. This is helpful because one hex digit maps to four binary bits, which makes hex a compact way to read binary values.
Common examples
Examples from the hex calculator
C2
D5
4 remainder 7
Signed values
You can type a leading minus sign for simple signed whole-number calculations, such as -A + 2. This is useful for quick math, but it is not the same as fixed-width two's complement notation.
History, privacy, and copying
Recent hex answers stay visible in the page while you work. The history is kept only in the current browser tab and is not sent to a server.
Copy answer copies the hex, decimal, and binary answer so you can paste it into notes, homework, a message, or another document.