CCNA Routing and Switching
<< IP and Network Fundamentals Course
>> Decimal, Binary, and Hex Conversion Section

How to Convert Binary to Hexadecimal will show you how to to Master Binary to Hexadecimal conversion using easy steps. I will show you through examples how easy to do the conversion using two known methods. So, once you master the conversion, you will feel more confidence to move on to Hexadecimal conversion steps, it’s worth to mention conversion similarities sometimes among 10, 2, and 16 base systems which will make it easy to grasp and remember.
Converting Binary to Hexadecimal
E.g. Convert 10001110 binary to Hexadecimal
Method 1:
Step 1: starting from the right of the binary string: split the string to 2 nibbles: 1st nibble 1110 and the 2nd nibble 1000. Add only the ON places:
128 64 32 16 8 4 2 1 1 1 1 0
128 64 32 16 8 4 2 1 1 0 0 0
Add only the ON places
1st Nibble: 1110 = 14 = E
2nd Nibble: 1000 = 8
Step 2: Always write your Hex answer starting by the LAST Hex: 8E
Therefore, 10001110 equal to 8E Hex.
Note: Method 1 is faster and more recommended than Method 2.
Method 2:
Step 1: convert the binary string to Decimal first; write down the binary chart.
128 64 32 16 8 4 2 1 1 0 0 0 1 1 1 0
Add only the ON places: 128 + 8 + 4 + 2 = 142
Step 2: Now convert Decimal 142 to Hex. Write down the Hex chart and divide 142 by 16.
142/16=8 units of 16s in the 16’s place, with remainder of 14 units of 1s in the 1’s place.
256 16 1 0 8 14
Therefore, 10001110 equal to 8E Hex.
Convert 11101 binary to Hexadecimal
Method 1:
Step 1: starting from the right of the binary string: split the string to 2 nibbles. Plug the 1st and 2nd nibble; add only the ON places:
128 64 32 16 8 4 2 1 1 1 0 1
128 64 32 16 8 4 2 1 0 0 0 1
1st Nibble: 1101 = 13 = D
2nd Nibble: 0001 = 1
Step 2: Always write your Hex answer starting by the LAST Hex: 1D
Therefore, 11101 binary equal to 1D Hex.
Method 2:
Step 1: Convert the binary string to Decimal first. Write down the binary chart.
128 64 32 16 8 4 2 1 0 0 0 1 1 1 0 1
Add only the ON places: 16 + 8 + 4 + 1 = 29
Step 2: Now convert Decimal 29 to Hex. Divide by 16: 29/16=1 with remainder of 13
256 16 1 0 1 13
Therefore, 11101 binary equal to 1D Hex.
Convert 101011 Binary to Hexadecimal
Method 1:
Step 1: starting from the right of the binary string: split the string to 2 nibbles; add only the ON places in each nibble.
Note: by now you should be able to add the ON places for each nibble without the binary chart.
1st Nibble: 1011 = 11 = B
2nd Nibble: 0010 = 2
Step 2: Always write your Hex answer starting by the LAST Hex: 2B
Therefore, 101011 binary equal to 2B Hex.
Method 2:
Step 1: Convert the binary string to Decimal first. Write the binary chart.
128 64 32 16 8 4 2 1 0 0 1 0 1 0 1 1
Ad only the ON places: 32 + 8 + 2 + 1 = 43
Step 2: Now convert Decimal 43 to Hex. Divide 43 by base 16 to get it in Hex.
43/16=2 with remainder of 11. We have 2 units of 16s and 11 units of 1.
256 16 1 0 2 11
Therefore, 101011 binary equal to 2B Hex.
Convert 1101111 binary to Hexadecimal
Method 1:
Step 1: starting from the right of the binary string: split the string to 2 nibbles; add only the ON places in each nibble.
1st Nibble: 1111 = 15 = F
2nd Nibble: 0110 = 6
Step 2: Always write your Hex answer starting by the LAST Hex: 6F
Therefore, 1101111 binary equal to 6F Hex.
Method 2:
Step 1: convert the binary string to Decimal First.
128 64 32 16 8 4 2 1 0 1 1 0 1 1 1 1
Add only the ON places: 64 + 32 + 8 + 4 + 2 + 1 = 111
Step 2: Now convert Decimal 111 to Hex. 111/16=6 with remainder of 15
16 1 6 15
Therefore, 1101111 binary equal to 6F Hex.
Convert 100111010101011 Binary to Hexadecimal
Step 1: starting from the right of the binary string: split the string to nibbles; add only the ON places in each nibble.
1st Nibble: 1011 = 11 = B
2nd Nibble: 1010 = 10 = A
3rd Nibble: 1110 = 14 = E
4th Nibble: 0100 = 4
Step 2: Always write your Hex answer starting by the LAST Hex: 4EAB
Therefore, 100111010101011 binary equal to 4EAB Hex.
Method 2:
Step 1: convert the binary string to Decimal first: write a binary chart to accommodate the long binary string.
16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1 1 0 0 1 1 1 0 1 0 1 0 1 0 1 1
Add only the ON places:
16384 + 2048 + 1024 + 512 + 128 + 32 + 8 + 2 + 1 = 20139
Step 2: Now convert Decimal 20139 to Hex. Divide 20139 based on the Hex chart below, since 20,139 is bigger than 4,096, I have added 65,536 place value for more clarification.
Division Steps:
a. Since 65536 bigger than 20139 skip it and move on to the next place.
b. 20139/4096=4 units of 4096s with remainder of 3755.
c. 3755/256=14 units of 256s with remainder of 171.
d. 171/16=10 units of 16s with remainder of 11 units that goes for 1s place value.
65536 4096 256 16 1 0 4 14 10 11
When dealing with Hex chart, always drop the left leading zeros; write your Hex answer starting from the left side. 4, 14(E), 10(A), and 11 is (B)
Therefore, 100111010101011 equal to 4EAB.
Note: The 1st method is faster when dealing with long binary strings.
Binary to Decimal and Hex Chart
After this practice, you should be able to know by heart all nibbles’ decimal value from 0000 (0) up to 1111 (15), and nibbles’ Hex value from 1010 (A) up to 1111 (F).
- 0 = 0000
- 1 = 0001
- 2 = 0010
- 3 = 0011
- 4 = 0100
- 5 = 0101
- 6 = 0110
- 7 = 0111
- 8 = 1000
- 9 = 1001
- 10 = 1010 = A
- 11 = 1011 = B
- 12 = 1100 = C
- 13 = 1101 = D
- 14 = 1110 = E
- 15 = 1111 = F
Subject Related
By Wikipedia Binary | Math is Fun | Numbers Better Explained | Free Online Calculator | R&S ICND1 and ICND2 | Introduction To Network | Practical Packet | Computer Network | Introduction to Networking | Who is Running the Internet | Networking Self-Teaching Guide
CCNA Routing and Switching
<< IP and Network Fundamentals Course
>> Decimal, Binary, and Hex Conversion Section
LEAVE A COMMENT