Number Systems · free · no sign-up
Hex Calculator
Add, subtract, multiply, divide and apply bitwise operations to hexadecimal numbers.
About the Hex Calculator
Add, subtract, multiply, divide and apply bitwise operations to hexadecimal numbers.
How to use the Hex Calculator
- Enter Hex A and choose an Operation.
- Enter Hex B (or the shift amount) and press Calculate.
Formula and method
Hexadecimal uses the digits 0 to 9 and A to F (10 to 15). Each position is a power of 16.
Worked example
FF + 1 = 100 in hex (255 + 1 = 256). 0xA5 AND 0x0F = 0x05.
Tips
- Hex is widely used for colours (#FF0000 is red) and memory addresses.
- Two hex digits make one byte.
Frequently asked questions
How do I convert hex to decimal?
Multiply each digit by its power of 16 and add. 1F = 1 × 16 + 15 = 31.