Skip to content

Hex Calculator

Embed

Paste this where you want Hex Calculator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/hex-calculator/" width="100%" height="500" frameborder="0" loading="lazy" title="Hex Calculator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/hex-calculator/">Hex Calculator</a> by BrowserUtils</p>

Perform arithmetic on hexadecimal numbers.Runs in this tab.

109
265

How to use Hex Calculator

  1. Type hex in Hex Value A and Hex Value B. The page opens on FF and 0A with + selected.
  2. Choose +, -, *, or /. The result shows Hex Result and Decimal Result.
  3. A leading 0x is accepted: 0xFF is the same value as FF. There is no AND, OR, XOR, or remainder button.

Hex arithmetic on this page

Hex Value A and Hex Value B are parsed with base 16. The page opens on FF and 0A with + selected. FF is 255. 0A is 10. A leading 0x is accepted, so 0xFF is the same input as FF.

A Op B Hex result Decimal result
FF + 0A 109 265
0A - FF -F5 -245
FF / 0A 19 25

Subtraction keeps a minus sign when the result is negative. Division uses Math.trunc, which drops the fraction toward zero: 255 / 10 is 25, and the hex column is 19. Dividing by 0 clears the result.

The operator buttons are +, -, *, and /. There is no bitwise AND, OR, XOR, or remainder. The bitwise calculator is the page for AND and OR.

Next step

Questions

How do I add hexadecimal numbers?
Leave the operator on +. FF + 0A is hex 109 and decimal 265. FF is 255 and 0A is 10.
How does hex subtraction work?
Choose -. 0A - FF is hex -F5 and decimal -245. A negative result keeps the minus sign in both columns. Division by zero shows no result.
How does hex division work?
Choose /. FF / 0A is hex 19 and decimal 25. Division uses integer truncation toward zero, so the fractional part is dropped. 0xFF parses as 255, the same as FF.

More in Math & Calculators

All 16 math & calculators