Hex Calculator
This calculator works with hexadecimal numbers. It adds, subtracts, multiplies and divides them and applies AND, OR and XOR, and it shows the result in hex, decimal, binary and octal.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Hex Calculator online
- Enter value one. Use 0 to 9 and A to F; case does not matter.
- Select an operator. Arithmetic and bitwise operators are both in the list.
- Enter value two. Same alphabet as the first.
- Check the output. Four number systems are printed together.
Why use this free Hex Calculator
- Base 16 maths
- Bitwise operators
- Four systems at once
- Quotient and remainder
- Optional 0x prefix
- Share by link
Hexadecimal
Hexadecimal, or hex, is the base 16 system. It uses the digits 0 to 9 and the letters A to F for the values 10 to 15. Programmers like it because one hex digit stands for exactly four bits, so it is a compact way to write binary data, colours and memory addresses.
How to use it
Type two hex numbers, with or without the 0x prefix and in any case, and choose an operation. Add, subtract, multiply and divide work in base 16. The bitwise operations compare the numbers bit by bit. Division gives the whole quotient and the remainder in hex.
A worked example
Adding 1F and A3 gives C2, which is 194 in decimal and 11000010 in binary. The numbers are 31 and 163 in decimal. Multiplying 1F by A gives 136 in hexadecimal.
Colours and addresses
Web colours such as #FF8800 are three hex pairs for red, green and blue. Memory addresses and file signatures are also written in hex. Adding and subtracting hex numbers is how offsets and ranges are worked out.
No overflow
The page uses whole-number arithmetic of any size, so there is no 32-bit or 64-bit wraparound. If you need that behaviour, reduce the result by the size you want. A minus sign marks a negative result.
Using the calculator
Results appear under the boxes and refresh as you edit them. Copy the result, download a PDF or a CSV, or send the page link.
Hex Calculator: frequently asked questions
How do I add hex numbers?
What do the letters mean?
How do I convert hex to decimal?
Can I type the 0x prefix?
What is a nibble?
Does the Hex Calculator store my numbers?
Is there a way to keep the Hex Calculator result?
Related searches for Hex Calculator
- Hex Calculator online
- free Hex Calculator
- Hex Calculator online free
- Hex Calculator for mobile
- Hex Calculator without sign up
- hex formula
- hex calculator with table
- Hex Calculator – Math, Stats & Charts
Hex Calculator is a free online tool on MAITBOX, in the Math, Stats & Charts group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.