Hex Calculator
Fill in any one of the four fields (decimal, hex, binary or octal) and the others update instantly. A separate tool adds and subtracts hex numbers.
Instant Multi-Base Converter
Edit any field below — all other bases convert in real time!
Hexadecimal Arithmetic (+, -, ×, ÷)
Hex Result
Why hexadecimal matters
Hexadecimal is a base-16 system using digits 0-9 and letters A-F. Each hex digit represents four binary bits, which makes it a compact shorthand for binary data. The value FF equals 255 in decimal and 11111111 in binary.
Programmers use hex for memory addresses, color codes (like #FF0000 for red), and debugging because two hex digits exactly represent one byte. Converting between hex and binary is a simple digit-to-nibble mapping.
Converting between bases
To convert decimal to hex, divide by 16 repeatedly and read the remainders from bottom to top. For example 255 รท 16 = 15 remainder 15, giving FF.
The converter above works in all directions: fill in decimal, hex, binary or octal and the other three fields fill in automatically, so you never have to convert by hand.
How to use this calculator
- Fill in one of the four fields (decimal, hex, binary or octal).
- Press Convert and the other three fields fill in automatically.
- Use the second tool to add or subtract two hex numbers.
- Read the hex and decimal results together.
Pro tips
- Color codes like #3498DB are hex: the first two digits are red, the next two green, the last two blue.
- Use uppercase letters (A-F) for readability; lowercase is accepted too.
- FF is 255 in decimal and 11111111 in binary โ a full byte.
Advantages & considerations
✅ Advantages
- Four-way conversion in one view
- Hex addition and subtraction included
- Shows decimal values for every result
⚠️ Considerations
- Negative hex results are shown with a minus sign
- Very large values use standard 32-bit interpretation