Hex Calculator
Add, subtract or multiply two hexadecimal numbers.
Quick answer: enter your details below and click Calculate — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
H
Developer
Enter your details below.
How to use
- Enter the first hex number using digits 0-9 and letters A-F.
- Enter the second hex number.
- Choose Add, Subtract or Multiply and press Calculate.
About this tool
Hexadecimal is base 16, using digits 0 to 9 and letters A to F, and it is widely used for colours, memory addresses and identifiers. This tool validates both inputs as hex, performs the chosen operation, and shows the result in uppercase hex with its decimal value for checking. It handles whole numbers only, and a negative subtraction result is shown with a leading minus sign. Very long inputs may lose precision in JavaScript.
Frequently asked questions
Are lower-case hex letters accepted?
Yes. Lower-case a to f are accepted and the result is shown in upper case for consistency.
What digits are invalid in hex?
Any letter beyond F, such as G, and any symbol, is invalid and will be rejected with an error.