Hex Calculator
Perform arithmetic on hexadecimal numbers.Runs in this tab.⌘ ↵ runs it
How to use Hex Calculator
- Type hex in Hex Value A and Hex Value B. The page opens on FF and 0A with + selected.
- Choose +, -, *, or /. The result shows Hex Result and Decimal Result.
- 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
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeQuestions
How do I add hexadecimal numbers?
How does hex subtraction work?
How does hex division work?
Comments
More in Math & Calculators
- Percentage Calculator
- Aspect Ratio Calculator
- Bitwise Calculator
- Scientific Calculator
- Binary Calculator
- Matrix Calculator
- GCD & LCM Calculator
- Prime Number Checker
Comments