# How to convert binary number to hexadecimal

## Binary number

Binary numbering system uses only two symbols 0 and 1. Each digits of a binary number is referred to as bits. Binary system is also known as base -2 system. Each digit is represented by the increasing power of 2 from the LSB (Least Significant Bit). Binary system is the heart of digital electronics and is used for information flow. In digital electronics, 0 and 1 are used to denote logic states, high and low. Arithmetic operations are also possible in binary system.

Hexadecimal number system uses 16 different symbols to represent a numeric value. It uses numbers 0 to 9 and alphabets A to F for representation. . The place value of each digits of an hexadecimal number varies as the whole number powers of 16 starting from the right (Least Significant Digit). The first single digit number in hexadecimal system is 0 and the last is F. Similarly, the first two digit hexadecimal number is 10 and the last is FF and so on. It is used as an alternative for binary numbers by developers and programmers.

## How to convert a binary number to hexadecimal:

### Step 1:

To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.

### Step 2:

If the number of digits of the binary number is a multiple of 4 proceed to step 3. Otherwise add zeros to the left of the digits.

### Step 3:

Divide the digits of binary number into groups of 4 digits.

### Step 4:

Refer the below table and hex value correspond to each group of digits.

00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

### Step 5:

Join the results together to get the converted hexadecimal number.

## Example 1:

### Step 1:

To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.
1110102, there are 6 digits, that is not a multiple of 4.

### Step 2:

If the number of digits of the binary number is a multiple of 4 proceed to step 3. Otherwise add zeros to the left of the digits.
1110102 can be rewritten as 001110102

### Step 3:

Divide the digits of binary number into groups of 4 digits.
0011 1010

### Step 4:

Refer the table and note down the hexadecimal value correspond to each group of digits.

 0011 1010 3 A

### Step 5:

Join the results together to get the converted hexadecimal number.

1110102 = 3A16

## Example 2:

### Step 1:

To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.
101101012, there are 8 digits, that is a multiple of 4. So, we can move to step 3.

### Step 3:

Divide the digits of binary number into groups of 4 digits.
1011 0101

### Step 4:

Refer the table and note down the hexadecimal value correspond to each group of digits.

 1011 0101 B 5

### Step 5:

Join the results together to get the converted hexadecimal number.
101101012 = B516