Hex numbers or hexadecimal numbers refers to the number system with base 16. Which includes 16 various numbers or symbols such as 0 to 9 and A to F. A, B, C, D, E, F represents 10, 11, 12, 13, 14, 15 respectively. This number system is a relevant one because it is easy to remember the high value than the binary system. And it is very easy to convert to binary and decimal system also. This can be denoted with an 0x prefix or an h suffix. The examples related to the conversion of the hexadecimal numbers are given in the following section.

The steps for the conversion of hex numbers to decimal and binary are given below:

Hexadecimal to Decimal:

Step1: Multiply each numbers in the hex system with the corresponding power of 16.

Step2: Adding all these values will give the equivalent decimal number.

Eg: (5A)16=5×161+10×160=(90)10

Here note that A is taken as 10.

Hexadecimal to Binary:

Step1: Note down the binary number of each number of a hex system.

Step2: Write down all binary numbers together corresponding to the given hex number.