Hex to Decimal
Decimal to Hex
Convert a hex to a decimal
Hex Value (base 16):

Results will appear here

Conversion Result

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

0123456789ABCDEF
0123456789101112131415

Gazing 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 (i.e. 16โฐ, 16ยน, 16ยฒ, 16ยณ...).

4

Add up the results of each multiplication to get the overall decimal value.

Example

Let's take the hex number 1A2 and convert it to its decimal/denary value:

โ€ข 2 ร— 1 (16โฐ) = 2
โ€ข A ร— 16 (16ยน) = 10 ร— 16 = 160
โ€ข 1 ร— 256 (16ยฒ) = 256

Add the results together:
2 + 160 + 256 = 418

So the decimal value of hex 1A2 is 418. ๐ŸŽ‰

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

Advertisement Placeholder

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, its 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 Tinker Worms, 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.

๐Ÿ‘ค
Calculator by Alastair Hazell