Hex Calculator and Hex to Decimal Converter

Convert hex to decimal, binary and octal, or add, subtract, multiply and divide in hexadecimal.

Result

Fill in the fields above, then press Calculate.

Convert hex to decimal, binary and octal, or add, subtract, multiply and divide in hexadecimal. Type a hex value (0-9 and A-F), pick an operation and read the answer with the working. A hex to decimal table and a worked conversion are below.

Hex to decimal table

Hexadecimal (base 16) uses the digits 0-9 and the letters A-F, where A is 10 and F is 15. These are the values people look up most often.

Hex to decimal table
HexDecimal
A10
F15
1016
1F31
64100
FF255
100256
3E81000
1A3F6719
FFFF65535

How to convert hex to decimal

Write the place values of base 16 from the right: 1, 16, 256, 4096. Multiply each hex digit (A to F count as 10 to 15) by its place value, then add the results.

Worked example: 1A3F = 1 × 4096 + 10 × 256 + 3 × 16 + 15 = 6719.

The same number in binary is 1101000111111: each hex digit is exactly 4 binary bits.

Hex arithmetic

You can also add, subtract, multiply and divide directly in hexadecimal. For example, 1A3F + FF = 1B3E (decimal 6974).

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); 1A3F + FF = 1B3E (6974)

Hex to Binary

A3 = 1010 0011 = 10100011₂

Frequently Asked Questions

How do you convert hex to decimal?
Multiply each digit by its place value, a power of 16, and add the results. Digits A to F are 10 to 15. For example, 1A3F = 1 × 4096 + 10 × 256 + 3 × 16 + 15 = 6719.
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.

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.