How to convert Hexadecimal to Decimal

Hexadecimal numbering system is one of the numeral systems that are commonly used in computers and other digital systems. It is base 16 and it has 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F.

On the other hand, decimal system is probably the most familiar numeral system in the world. It is the standard system for denoting integer and non-integer numbers. It is base 10 and it has 10 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.

Table #1: Hexadecimal to Decimal conversion table

Hexadecimal0123456789ABCDEF
Decimal0123456789101112131415

We can say that a decimal number is a sum of listed decimal digits multiplied by the power of 10. We can say the same thing for a hexadecimal number, but we need to count each decimal representation of a digit as a power of 16. In order to make it easier to understand, here is a list of steps that you can use:

  1. Start with any hexadecimal number,
  2. Take the last digit (use decimal counterpart), multiply it with 1 (because 160 = 1),
  3. Take second digit from the end (use decimal counterpart), multiply it with 16 (because 161 = 16),
  4. Take third digit from the end (use decimal counterpart), multiply it with 256 (because 162 = 256),
  5. Continue with the sequence by increasing the power of 16 by 1 on each iteration until you've used up all the digits,
  6. Sum up the numbers from the sequence.
Hexadecimal to decimal calculation formula
DECIMAL = dn-1 x 16n-1 + ... + d3 x 163 + d2 x 162 + d1 x 161 + d0 x 160

We can see that the last power of 16 depends on the number of digits in the starting hexadecimal number. Let's take a look at few examples.

Example #1: Convert hexadecimal 9E into decimal

Step descriptionMultiplicationResult
Multiply decimal representation of E with 16014 x 114
Multiply decimal representation of 9 with 1619 x 16144
Resulting decimal number158

Example #2: Convert hexadecimal 7E3 into decimal

Step descriptionMultiplicationResult
Multiply decimal representation of 3 with 1603 x 13
Multiply decimal representation of E with 16114 x 16224
Multiply decimal representation of 7 with 1627 x 2561792
Resulting decimal number2019

Convert hexadecimal numbers to decimal numbers.

Convert decimal numbers to hexadecimal numbers.

Learn how to manually convert numbers between decimal and hexadecimal numbering systems.


Have feedback or questions?

Please, do let us know and we'll see what we can do for you.

0/2000