# Hexadecimal to Decimal Converter

Convert between decimal and hexadecimal numbering systems using the converter below. Enter either decimal or hex numbers, and instantly convert them to the other system. You can also discover the decimal equivalents of hexadecimal numbers ranging from "0" to "F" in the hex to decimal table.

conversion 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
Hex
Decimal

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

What is Hexadecimal Numeral System?

Hexadecimal (hex) numeral system is a base-16 numeral system that uses 16 symbols to represent values from 0 to 15. These symbols are the 10 decimal digits "0"–"9" to represent values from zero to nine and the first six letters of the English alphabet "A"–"F" to represent values from ten to fifteen.

Hex is mostly used to represent binary numbers in a friendly way. Each of the symbols in hex numbers are the representation of four binary bits.

To convert between hex and binary numbers, please visit hex to binary converter.

What is Decimal Numeral System?

Decimal numeral system is base-10 numeral system that uses 10 decimal digits to represent values from "0"–"9".

To convert between decimal and binary numbers, please visit decimal to binary converter.