Back to Tools

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

HexDecimalBinaryHexDecimalBinary
000000881000
110001991001
220010A101010
330011B111011
440100C121100
550101D131101
660110E141110
770111F151111

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 marker
0xCAFEBABEJava class file magic number