Skip to content
ConvertCalculate

Hexadecimal to Decimal

Efficiently convert hexadecimal numbers to decimal format for accurate numeric analysis, calculations, programming, or electronics projects where human-readable numbers are needed.

  • Free
  • Instant results
  • Runs in your browser
In short

To convert hexadecimal to decimal, multiply each hexadecimal digit by 16 raised to its position (starting at 0 on the right) and add the results. For example, 2D = 2×16^1 + 13×16^0 = 45.

How it works

Hexadecimal counts in base 16, decimal counts in base 10. Converting means rewriting the same quantity with a different set of digits — the value never changes, only how it is written.

  1. Number the digits from the right, starting at 0.
  2. Multiply each digit by 16 raised to the power of its position.
  3. Add the results — that total is the decimal value.

The reverse conversion is Decimal to Hexadecimal, which also handles every other base pair.

Examples

Worked examples, digit by digit:

  • 10 (hexadecimal) = 1×161 + 0×160 = 16 (decimal)
  • 21 (hexadecimal) = 2×161 + 1×160 = 33 (decimal)
  • FF (hexadecimal) = 15×161 + 15×160 = 255 (decimal)
Common values in every base
DecimalBinaryOctalHexadecimal
0000
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
25511111111377FF

Hexadecimal to Decimal: frequently asked questions

How do I convert hexadecimal to decimal?
Multiply each hexadecimal digit by 16 raised to its position (starting at 0 on the right) and add the results. For example, 2D = 2×16^1 + 13×16^0 = 45. The converter above does this instantly for any value.
What is FF in decimal?
Hexadecimal FF equals 255 in decimal (the value 255, the largest number that fits in one byte).
Why are hexadecimal and decimal used?
Hexadecimal (base 16, digits 0–9 and A–F) writes each byte as exactly two characters, which is why it is used for colours (#FF8800), memory addresses and MAC addresses. Decimal (base 10) is the everyday number system.