Hex Calculator
Perform arithmetic and bitwise operations on hexadecimal, decimal, and binary numbers. Supports addition, subtraction, multiplication, division, AND, OR, XOR, NOT, and bit shifts.
Hex Calculation Examples
| Operation | Expression | Hex Result | Decimal |
|---|---|---|---|
| Addition | FF + 1 | 0x100 | 256 |
| Subtraction | 100 − 1A | 0xE6 | 230 |
| Multiplication | A × B | 0x6E | 110 |
| Division | FF ÷ 10 | 0xF | 15 |
| Bitwise AND | FF AND 0F | 0x0F | 15 |
| Bitwise OR | F0 OR 0F | 0xFF | 255 |
| Bitwise XOR | AA XOR FF | 0x55 | 85 |
| Left Shift | 01 << 8 | 0x100 | 256 |
Frequently Asked Questions
How do I add hexadecimal numbers?⌄
Hex addition works like decimal addition, but you carry when the sum exceeds 15 (F). For example, FF + 1 = 100 in hex. Our calculator handles this automatically.
Can I multiply hex numbers?⌄
Yes! Select the × operator, enter two hex values, and the calculator shows the product in hex, decimal, and binary.
What is hex AND/OR/XOR?⌄
These are bitwise operations commonly used in programming. AND returns 1 where both bits are 1. OR returns 1 where either bit is 1. XOR returns 1 where bits differ. Example: 0xFF AND 0x0F = 0x0F.
What does bit shift (<< / >>) do?⌄
Left shift (<<) multiplies by 2^n. Right shift (>>) divides by 2^n. Example: 0x01 << 4 = 0x10 (which is 16 in decimal).