**Description**: Both binary numbers and hexadecimal numbers are generally used in digital electronic system. In binary, we represent the number in two digits, 0 and 1. In binary number, the base is two. In hexadecimal number, the base is sixteen. The sixteen digits used in this number system are numbers from 0-9 and alphabets from A – F. Any number can be represented by hexadecimal number. Here, we are going to deal with how to convert binary number to hexadecimal number. To convert binary number to hexadecimal number, there is some particular way. We can’t directly convert this. First, we have to convert binary to decimal number system. Then, convert that decimal number to hexadecimal number system. In this article, we learn the steps for this conversion.

**Formula**:

**Step 1:** The given number is in binary from.

**Step 2:** First, we have to change the **binary number into decimal number.**

**Step 3:** Then, we count the number of binary digits in the given number. Let there be n numbers.

**Step 4: **Then, we multiply each digit with 2n-1, when n is equal to number of position from right side.

**Step 5:** Add all numbers after multiplication.

**Step 6:** Now, the binary number is in decimal number.

**Step 7:** Now, convert **decimal to hexadecimal**. If the decimal number is less than sixteen, it will be converted by above table.

**Step 8:** If decimal number is greater than sixteen, it should be divided by 16.

**Step 9:** Remainder must be less than 16. (It will be converted by table).

**Step 10:** Then, we write quotient first and then hexadecimal form of remainder together.

**Step 11:** The resultant is in hexadecimal form of given binary number.

**Example**:

The given binary number is 01011011

Now, we convert it first to decimal number

So,

01011011 =(0 × 27) + (1 × 26) + (0 × 25) + (1 × 24) + (1 × 23) + (0 × 22) + (1 × 21) + (1 × 20)

= (0 × 128) + (1 × 64) + (0 × 32) + (1 × 16) + (1 × 8) + (0 × 4) + (1 × 2) + (1 × 1)

= 0 + 64 + 0 + 16 + 8 + 0 + 2 + 1

= 91 (decimal form of binary number)

Now, we have to change it into hexadecimal number.

So, 91 is greater than 16. So, we have to divide by 16.

After dividing by 16, quotient is 5 and remainder is 11.

So, 11 => B

Remainder is less than 16.

Hexadecimal number of remainder is B.

Quotient is 5 and hexadecimal number of remainder is B.

That is, 91 = 16 × 5 +**11**

5 = 16 × 0 + **5**

So, 5B is the hexadecimal number equivalent to decimal number 91.

OR

**Formula**:

step 1: Split the given binary number into groups from right, each containing 4 bits.

step 2: Add 0 or 0s to the left side if any group is lack of 4 bits.

step 3: Find the Hex equivalent for each group.

step 4: Form the each group Hex number together in the same order.

**Example**:

Convert the binary 1011010 to Hex number

10100102 => 0101 1010 grouped with padding

=> 5 A

= **5A****16**