Popup calculator Copy a link to this page Print this page Email a link to this page Scroll up to form What does this mean? Remove this row Open/Close content Close content Return to content Copy to clipboard

Hex to Decimal Converter

Convert a hex to a decimal

Use this calculator to convert a hex value to a decimal. Hex is a number system made up of 16 symbols (base 16). Decimal is made up of 10 symbols (base 10).

Disclaimer: Whilst every effort has been made in building our calculator tools, we are not to be held liable for any damages or monetary losses arising out of or in connection with their use. Full disclaimer.


Hex and decimal conversions

Decimals are numbers as we use them in our daily lives; whole numbers, like those used for counting items. Decimal is called base 10, because it uses 10 distinct numbers to count.

i.e. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

Hex numbers, or "hexadecimal", to use its full name, is base 16. It uses 16 distinct characters to count.

i.e. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, plus the letters A, B, C, D, E, F.

Putting these numbers side by side, we can get an idea of how to convert the most basic of decimal numbers to hex:

Hex to decimal reference list

0  1  2  3  4  5  6  7  8  9   A   B   C   D   E   F

0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15

Seeing decimal and hex numbers together like this, we can easily see that 10 in decimal is the same as A in hex, and 15 in decimal is F in hex.

How to convert from hex to decimal

  1. Take a hex number and, starting from the right of it, take each character one at a time.
  2. Look up the corresponding decimal in the hex-decimal comparison list above (e.g. A = 10, F = 15).
  3. Multiply that corresponding decimal by an increasing multiple (power) of 16 (e.g. 160, 161, 162 etc).
  4. Add up the results.

Example of hex to decimal conversion

Let's take the hex number A3C2. It is made up of A, 3, C, 2. So we start on the right, with 2, and work backwards.

  • 2 x (160) = 2 x 1 = 2
  • C x (161) = 12 x 16 = 192
  • 3 x (162) = 3 x (16 x 16) = 3 x 256 = 768
  • A x (163) = 10 x (16 x 16 x 16) = 10 x 4096 = 40960

Add the results together:

  • 2 + 192 + 768 + 40960 = 41922

So the decimal equivalent of A3C2 is 41922.

Note that if you want to convert a decimal to a fraction, you can use our decimal to fraction calculator.

Hex converted to HTML

Hex numbers have been used in groups of six digits to represent colours on the World Wide Web. This is because a six-digit hex number represents the three colours red, blue and green (RGB), as three groups of two digits.

Taking as an example the colour purple, it's represented as FF00FF.

If we split this down, we can see the three groups:

  FF     00      FF
| Red | Green | Blue |

FF00FF represents purple because FF is the highest two-digit hex number possible, while 00 is the lowest. Red and blue mixed together form the colour purple.

Note: If a valid six-digit (or three-digit) hex number is entered in our hex to decimal converter, the corresponding set of decimal RGB values will also be given, in addition to the overall decimal result.

For a bit of fun, you may be interested in a website called Hex Triplet Words, which contains a list of six-letter English words that only feature the letters A to F, together with the colors they represent in hexadecimal. Check it out!


If you have any problems using our hex to decimal calculator, please contact us.