# Hexadecimal to Decimal Number Conversion

hex to decimal table

 hex 0 1 2 3 4 5 6 7 8 9 A B C D E F dec 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Enter Hex
Enter Decimal

## How to convert hex to decimal?

To convert hex to decimal (base-16 to base-10), repeat the steps below for all digits from the last hex symbol on the right to the first hex symbol on the left.

1 - Get the decimal equivalent of the hex digit.

2 - Multiply decimal equivalent of the hex digit by 16 power of the digit's location. The power starts from 0 for the last hex digit. Increase that power by 1 for each next digit as you go to the left.

3 - Sum all the multipliers to get the hex number.

For example, these are the steps to convert hex number "3CD" to decimal:

From the table: D = 13, C = 12

3DC = (3 * 162) + (13 * 161) + (12 * 160)

3DC = 768 + 208 + 12

3DC = 988

Please visit base converter to convert between all number bases.

## How to convert decimal to hex?

To convert decimal to hex, considering as an integer, divide the decimal number by 16 repeatedly until the quotient is 0 and get the remainder for each iteration. Here is the step by step conversion from decimal to hex:

1 - Divide the decimal number by 16.

2 - Keep aside the remainder left. If the remainder is greater than 9, then get the hex equivalent of it.

3 - Get the integer quotient for the next iteration and repeat till you get the quotient value is 0.

4 - At the end, reverse the order of the remainders to get the hex number.

For example, these are the steps to convert decimal number "876" to hex:

1 - 876 / 16

2 - Quotient (54), Remainder (12)

3 - 54 / 16

4 - Quotient(3), Remainder (6)

5 - 3 / 16

6 - Quotient(0), Remainder (3)

7 - Reverse the remainders 12 (C), 6, 3

8 - 876 = 36C