Hex Calculator
Do maths with hexadecimal numbers — add, subtract, multiply, divide, AND, OR, XOR — and see the answer in hex, decimal and binary.
Result
Hex
How to Use Hex Calculator
Work with memory addresses, colours, offsets and hex homework in seconds.
Enter Two Hex Numbers
Type digits 0–9 and letters A–F, like 1A3F and FF. A 0x in front is fine.
Pick an Operation
Choose +, −, ×, ÷ or a bitwise operation: AND, OR or XOR.
Read the Answer
See the result in hex, decimal, binary and octal, with the working shown underneath. Switch to Convert to change between number systems.
Maths
+ − × ÷
Bitwise
AND, OR, XOR
Shows
Hex, decimal, binary, octal
Number size
Any length
Works on
Phone & computer
Price
100% free
Hex Calculator: Quick Reference
Hex digits and their decimal and binary values.
| Hex | Decimal | Binary |
|---|---|---|
| 0 – 9 | 0 – 9 | 0000 – 1001 |
| A | 10 | 1010 |
| B | 11 | 1011 |
| C | 12 | 1100 |
| D | 13 | 1101 |
| E | 14 | 1110 |
| F | 15 | 1111 |
| 10 | 16 | 1 0000 |
| FF | 255 | 1111 1111 |
What Can You Use It For?
Popular ways people use Hex Calculator.
Programming
Work out memory addresses, offsets and bit masks.
Colours
Check HEX colour values like FF or 80 as numbers.
Homework
Check hex addition and conversion answers.
Networking
Read MAC addresses and IPv6 parts as numbers.
Tips for the Best Result
- Each hex digit is exactly 4 binary digits — that's why hex is used as short-hand for binary.
- Letters can be upper or lower case, and a 0x in front is ignored.
- Use Convert mode to change decimal to hex (or back) in one step.
Frequently Asked Questions
Quick answers about Hex Calculator.
A base-16 number system. It uses 0–9 and the letters A–F, where A = 10 and F = 15. One hex digit stands for exactly 4 binary digits.
Add digit by digit from the right. If a column reaches 16 or more, write the extra and carry 1 — for example 9 + 8 = 17 = 11 in hex (write 1, carry 1).
Switch to Convert, choose Hex → Decimal and type the number, like FF (= 255).
Choose Decimal → Hex in Convert mode and type your number — for example 4096 becomes 1000.
They compare the numbers bit by bit. AND gives 1 where both bits are 1, OR where at least one is 1, and XOR where the bits are different.
Yes. 0x1A3F and 1A3F are read the same way. Upper and lower case letters both work.
No. The calculator uses big-number maths, so long hex numbers like 64-bit addresses work exactly.
Yes — 100% free, with no sign-up. Everything is calculated in your browser.
Related Free Tools
Ready to Use Hex Calculator?
Scroll up and get your result in seconds. 100% free, no sign-up needed.
Start Now