Hexadecimal Calculator
Perform hexadecimal arithmetic operations and convert between hex, decimal, and binary.
Hexadecimal Arithmetic Operations
Perform addition, subtraction, multiplication, or division on two hexadecimal numbers.
Hexadecimal to Decimal Converter
Convert a hexadecimal number to decimal with a step-by-step breakdown.
Decimal to Hexadecimal Converter
Convert a decimal number to hexadecimal using the division method.
Hexadecimal ↔ Binary Converter
Convert between hexadecimal and binary. Each hex digit represents exactly 4 binary bits (nibble).
Hexadecimal Reference Table
| Hex | Decimal | Binary | Hex | Decimal | Binary |
|---|---|---|---|---|---|
| 0 | 0 | 0000 | 8 | 8 | 1000 |
| 1 | 1 | 0001 | 9 | 9 | 1001 |
| 2 | 2 | 0010 | A | 10 | 1010 |
| 3 | 3 | 0011 | B | 11 | 1011 |
| 4 | 4 | 0100 | C | 12 | 1100 |
| 5 | 5 | 0101 | D | 13 | 1101 |
| 6 | 6 | 0110 | E | 14 | 1110 |
| 7 | 7 | 0111 | F | 15 | 1111 |
Understanding Hexadecimal Numbers
What is Hexadecimal?
Hexadecimal (hex) is a base-16 numeral system using digits 0-9 and letters A-F. A=10, B=11, C=12, D=13, E=14, F=15. This allows representing large numbers more compactly than binary or decimal.
Each hex digit represents exactly 4 binary bits (a nibble), making hex a convenient shorthand for binary. For example: FF = 1111 1111 = 255.
Why Use Hexadecimal?
Hexadecimal is widely used in computing because:
- Memory addresses - RAM locations are shown in hex (e.g., 0x7FFE0000)
- Color codes - CSS/HTML colors use hex (#FF5733)
- MAC addresses - Network hardware IDs (e.g., 00:1A:2B:3C:4D:5E)
- Binary representation - Hex is 4× more compact than binary
- Debugging - Error codes and dumps are often in hex
Common Hex Values in Computing
#FFFFFFWhite color (RGB)#000000Black color (RGB)0xFF255 (max byte value)0xFFFF65,535 (max 16-bit)0xDEADBEEFDebug marker0xCAFEBABEJava class file magic number