Streamline your coding processes with this intuitive tool. Easily transform hexadecimal values into decimal format, ensuring precision in every conversion.

16
10
10
2

In the standard decimal system, a number's value is determined by multiplying each digit with powers of 10.

For instance, 137 in base 10 can be broken down as:
13710 = 1×102 + 3×101 + 7×100 = 100 + 30 + 7.

Hexadecimal numbers operate similarly, but they use powers of 16.

For a hex number composed of n digits:
dn-1 ... d3 d2 d1 d0

To convert it to decimal, multiply each hex digit by its appropriate power of 16, then sum them up:

decimal value = dn-1×16n-1 + ... + d3×163 + d2×162 + d1×161 + d0×160.

Let's look at a few examples:

Example #1:
3B in hexadecimal can be calculated as:
3B16 = 3×161 + 11×160 = 48 + 11 = 5910.

Example #2:
E7A916 = 14×163 + 7×162 + 10×161 + 9×160 = 57344 + 1792 + 160 + 9 = 5930510.

Example #3:
0.816 = 0×160 + 8×16-1 = 0 + 0.5 = 0.510.

How do you convert hexadecimal to decimal?

Hexadecimal uses a base of 16 to transition into decimal. Multiply each hexadecimal digit by 16, increasing the power from 0 as you move rightward. Summing up these products will finalize the conversion.