Converting Hexadecimal to decimal takes effort, Although, Converting hexadecimal to binary is very easy, that’s why hexadecimal has been used in some programming languages. but once you get it then it’s easy to change those tricky numbers and letters to something you or your computer can understand. Let’s understand Hexadecimal Basics first.

### What are Hexadecimals?

The hexadecimal number system, also known by *base-16* or sometimes just *hex*. It is a number system that uses 16 unique symbols to represent a particular value. Those symbols are 0-9 and A-F. The word *hexadecimal *is a combination of *hexa *(meaning 6) and *decimal* (10). Binary is base-2, octal is base-8, and decimal is of course base-10.

The number system that we use in day-to-day life is called the *decimal*, or , system and uses the 10 symbols from 0 through 9 to represent a value.

Hexadecimal values are sometimes written with the prefix “0x” (0x2F7) or with a subscript (2F7_{16}), but it doesn’t change the value. In both of these examples, you could keep or drop the prefix or subscript and the decimal value would remain 759.

### 01. How to use Hexadecimals?

Our conventional decimal counting system is base ten, utilizing ten unique symbols to show numbers. Hexadecimal is a base sixteen number system, which means it utilizes sixteen characters to show numbers.

Below there’s a hexadecimal chart to help you convert hex to decimal easily. This hexadecimal table is quite helpful in converting hex to decimal values and also known as hex translator.

- Counting from zero upward:

Hexadecimal | Decimal |
---|---|

0 | 0 |

1 | 1 |

2 | 2 |

3 | 3 |

4 | 4 |

5 | 5 |

6 | 6 |

7 | 7 |

8 | 8 |

9 | 9 |

A | 10 |

B | 11 |

C | 12 |

D | 13 |

E | 14 |

F | 15 |

10 | 16 |

11 | 17 |

12 | 18 |

13 | 19 |

14 | 20 |

15 | 21 |

16 | 22 |

17 | 23 |

18 | 24 |

19 | 25 |

1A | 26 |

1B | 27 |

1C | 28 |

1D | 29 |

### 02. Use Subscript to show which system you’re using:

At whatever point it may be unclear which system you’re utilizing, utilize a decimal subscript number to mean the base. For instance, 1710 means “17 in base ten” (a conventional decimal number). 1710 = 1116, or “11 in base sixteen” (hexadecimal). You can skip this if your number has an alphabetic character in it, for example, B or E. Nobody will mix up that for a decimal number.

## Convert Hexadecimal to Decimal

**01. Review how base ten works.** You utilize decimal documentation consistently without stopping and consider the importance, however when you initially learned it, your parent or instructor may have disclosed it to you in more detail. A speedy survey of how normal numbers are composed will enable you to change over the number:

- Each digit in a decimal number is in a certain “place.” Moving from right to left, there’s the “ones place,” “tens place,” “hundreds place,” and so on. The digit 3 just means 3 if it’s in the ones place, but it represents 30 when located in the tens place, and 300 in the hundreds place.
- To put it mathematically, the “places” represent 10
^{0}, 10^{1}, 10^{2}, and so on. This is why this system is called “base ten,” or “decimal” after the Latin word for “tenth.”

**02. Write a decimal number as an addition problem.** This will probably seem obvious, but it’s the same process we’ll use to convert a hexadecimal number, so it’s a good starting point. Let’s rewrite the number 480,137_{10}. (Remember, the subscript _{10} tells us the number is written in base ten.):

- Starting with the rightmost digit, 7 = 7 x 10
^{0}, or 7 x 1 - Moving left, 3 = 3 x 10
^{1}, or 3 x 10 - Repeating for all digits, we get 480,137 = 4x100,000 + 8x10,000 + 0x1,000 + 1x100 + 3x10 + 7x1.

**03. Write the place values next to a hexadecimal number.** Since hexadecimal is base sixteen, the “place values” compare to the powers of sixteen. To change over to decimal, multiply each place value by the relating power of sixteen. Begin this procedure by composing the powers of sixteen alongside the digits of a hexadecimal number. We’ll do this for the hexadecimal number C921_{16}. Start on the right with 16^{0}, and increase the exponent each time you move left to the next digit:

- 1
_{16}= 1 x 16^{0}= 1 x 1 (All numbers are in decimal except where noted.) - 2
_{16}= 2 x 16^{1}= 2 x 16 - 9
_{16}= 9 x 16^{2}= 9 x 256 - C = C x 16
^{3}= C x 4096

**04. Convert alphabetic characters to decimal.** Numerical digits are the same in decimal or hexadecimal, so you don’t need to change them (for instance, 7_{16} = 7_{10}). For alphabetic characters, refer to this list to change them to the decimal equivalent:

- A = 10
- B = 11
- C = 12 (We’ll use this on our example from above.)
- D = 13
- E = 14
- F = 15

**05. Perform the calculation.** As everything is written in decimal now, do each multiplication problem and add the results together. A calculator will help for most hexadecimal numbers. Continuing our example from earlier, here’s C921 rewritten as a decimal formula and solved:

- C921
_{16}= (in decimal) (1 x 1) + (2 x 16) + (9 x 256) + (12 x 4096) - = 1 + 32 + 2,304 + 49,152.
- =
**51,489**_{10}. The decimal version will usually have more digits than the hexadecimal version, since hexadecimal can store more information per digit.

## How to Convert Any Number to Hexadecimal Number?

Here’s an example which will help us to convert any number to hexadecimal number. Let’s begin with number 16,325. To proceed, we have to look for the highest power i.e. of 16 which is not greater than that number.

161 = 16

162 = 256

163 = 4096

164 = 65,536

As 163 (4096) is what we’ve been looking for.

Here’s the quick quick question: *How many times does 4096 go into 16,325?* Voila! 3 is the answer. With 4037 as a remainder. 3 will going to be our first digit of our hexadecimal number but we have to do a bit more effort with the remainder.

How many times does 256 go into 4037? (256 is 162, remember) 15 times, with a remainder of 197. So, our next digit is now 15. Hold On! 15 isn’t a digit! That’s right. But if you recheck the list of hexadecimal numbers, you will see that whenever we have a 15, we can call it F. (I hope you’re not confused yet?) As of now our first two digits of our hexadecimal number are 3 and F. But we still got a remainder of 197 to deal with. Shall we continue? Or you got it?

If you will be having any problem or confusion do let us know in the comment section below.

So how hexadecimal can be used to create a secret text? As a number is assigned to each and every letter in the Alphabet and it can be converted into base sixteen. Let’s take letter ‘Z’ is number 90 but if you convert it to base sixteen it will be ‘5A’.

So, this is a bit about how these tricky hexadecimal code works. Here’s you’re all set to send encoded texts to others.