Hex Calculator

Convert between hexadecimal and other number bases. Perform hex arithmetic operations.

A hexadecimal calculator converts between hex, decimal, binary, and octal number systems and performs arithmetic in hexadecimal.

Enter a hexadecimal value (0-9, A-F) and select an operation. For conversions, the calculator shows the equivalent in decimal, binary, and octal. For arithmetic, enter a second hex value.

Examples

Hex to Decimal

FF = 15×16 + 15 = 255

Hex addition

FF + 01 = 100 (255 + 1 = 256)

Hex to Binary

A3 = 1010 0011 = 10100011₂

Frequently Asked Questions

What is hexadecimal?
Hexadecimal (base 16) uses digits 0-9 and letters A-F. It is widely used in computing because each hex digit maps to exactly 4 binary bits.
Where is hex used?
Hex is commonly used for color codes (#FF0000 = red), memory addresses, MAC addresses, and representing binary data compactly.
How do I convert hex to decimal?
Multiply each digit by its positional power of 16 and sum. For example: 2F = 2×16 + 15 = 47.
Ad Space

Quick Tips

  • Double-check your inputs — small errors lead to incorrect results.
  • Remember that each hex digit represents exactly 4 binary bits.
  • Use uppercase or lowercase letters for hex digits A through F.

A hexadecimal calculator converts between hex, decimal, binary, and octal number systems and performs arithmetic in hexadecimal.

How to Use This Calculator

Enter a hexadecimal value (0-9, A-F) and select an operation. For conversions, the calculator shows the equivalent in decimal, binary, and octal. For arithmetic, enter a second hex value.

Understanding the Formula

Hex digits: 0-9 (value 0-9), A-F (value 10-15). Each hex digit = 4 binary bits. Conversion: multiply each digit by 16^position.

Examples

Hex to Decimal

FF = 15×16 + 15 = 255

Hex addition

FF + 01 = 100 (255 + 1 = 256)

Hex to Binary

A3 = 1010 0011 = 10100011₂

Frequently Asked Questions

What is hexadecimal?

Hexadecimal (base 16) uses digits 0-9 and letters A-F. It is widely used in computing because each hex digit maps to exactly 4 binary bits.

Where is hex used?

Hex is commonly used for color codes (#FF0000 = red), memory addresses, MAC addresses, and representing binary data compactly.

How do I convert hex to decimal?

Multiply each digit by its positional power of 16 and sum. For example: 2F = 2×16 + 15 = 47.

Assumptions & Limitations

  • Assumes valid hexadecimal input using digits 0-9 and letters A-F.
  • Assumes non-negative integer input for base conversions.
  • Division produces integer quotient and remainder only.