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

To convert from hex to decimal and from decimal to hex, you may use the hex and decimal converter above. Also you may find the decimal equivalents of hexadecimal numbers from "0" to "F" in the hex to decimal table.

Below, you may find information for how to convert from hex to decimal and how to convert from decimal to hex, including example conversions.

## 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 hexadecimal digit.

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

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

For example, these are the steps to convert hexadecimal 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 hexadecimal:

1 - Divide the decimal number by 16.

2 - Keep aside the remainder left. If the remainder is greater than 9, then get the hexadecimal 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 hexadecimal number.

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

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