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 | Decimal |
|---|---|
| A | 10 |
| F | 15 |
| 10 | 16 |
| 1F | 31 |
| 64 | 100 |
| FF | 255 |
| 100 | 256 |
| 3E8 | 1000 |
| 1A3F | 6719 |
| FFFF | 65535 |
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).
Examples
Hex to Decimal
Hex addition
Hex to Binary
Frequently Asked Questions
How do you convert hex to decimal?
What is hexadecimal?
Where is hex used?
Result
Your result appears here and follows you as you scroll.
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.