Hexadecimal Calculator
Perform mathematical and bitwise operations with hexadecimal numbers. Supports addition, subtraction, multiplication, division, and bitwise operations (AND, OR, XOR, NOT, shifts). Results shown in hex, decimal, binary, and octal.
Decimal to Hexadecimal:
Divide by 16, use remainders with digits 0-9, A-F
Hex to Decimal:
Sum of (digit value × 16^position)
Hex digits:
0-9 = 0-9, A=10, B=11, C=12, D=13, E=14, F=15
Divide by 16, use remainders with digits 0-9, A-F
Hex to Decimal:
Sum of (digit value × 16^position)
Hex digits:
0-9 = 0-9, A=10, B=11, C=12, D=13, E=14, F=15
Example: Convert 255 to hex
255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
Hexadecimal: FF
Verify: (15×16) + 15 = 240 + 15 = 255 ✓
255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
Hexadecimal: FF
Verify: (15×16) + 15 = 240 + 15 = 255 ✓
🔗 Related Calculators
📐 Formula
Decimal to Hexadecimal:
Divide by 16, use remainders with digits 0-9, A-F
Hex to Decimal:
Sum of (digit value × 16^position)
Hex digits:
0-9 = 0-9, A=10, B=11, C=12, D=13, E=14, F=15
Divide by 16, use remainders with digits 0-9, A-F
Hex to Decimal:
Sum of (digit value × 16^position)
Hex digits:
0-9 = 0-9, A=10, B=11, C=12, D=13, E=14, F=15
📝 Example Calculation
Example: Convert 255 to hex
255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
Hexadecimal: FF
Verify: (15×16) + 15 = 240 + 15 = 255 ✓
255 ÷ 16 = 15 remainder 15 (F)
15 ÷ 16 = 0 remainder 15 (F)
Hexadecimal: FF
Verify: (15×16) + 15 = 240 + 15 = 255 ✓