Convert Binary To Hexadecimal

To compliment this site and all the online computer tutorials on offer I have setup a computer help forum where you can go to ask your questions.


Here I will show you a simple way of converting Binary to Hexadecimal, I will base this example on the first octet of an ip address.
Firsly I want you to understand that we need to break our 8 digit binary number up in to 2 sections. Each section is called a nibble. In this example we will be using 8 bit binary as you would see in an ip address.
Remember that with Hexadecmal once we count to the number "9" we then start on letters like so

Lets use the Binary number 10001111 and convert it to Hexadecimal.
Binary number = 10001111
Break down in to 2 nibbles ( Groups of 4 ) from left to right 1000 1111
for the rest of this tutorial refer to my table below. You will see that I started with the first nibble which was "1000" I then took the last bit which is "0" and placed it in the colmn under number "1" I then took the 3rd bit which was "0" and placed it in the next column which is under number "2" I then took the 2nd bit of the nibble which is also "0" and I placed it in the next column to the left under number "4" I then took the 1st bit which is number "1" and placed it in the next column to the left under number "8"
I followed exactly the same procedure for the second nibble as you can see in the table below.
I then added all the 1s together for the 1st nibble as you can see in my table.

  128 64 32 16 8 4 2 1 Totals
1st Nibble         1 0 0 0 8+0+0+0=8
2nd Nibble         1 1 1 1 8+4+2+1=15


You will notice the second nibble totals 15 which is represented by the letter F

A = 10

B = 11

C = 12

D = 13

E = 14

F = 15 Answer = 8F

Binary To Decimal Conversion

Decimal To Binary

Cisco Help

Network Basics

Binary data (ASCII) American standard code for information interchange

1 = on

0 = off

This is the most standard code for representing alpha numeric data in a computer. ASCII uses binary digits to represent the symbols typed on a keyboard. When computers send on or off states over a network electrical lights or radio waves are used to represent one's or zero's. Each key pressed on a keyboard is represented by 8 binary digits.

So remember this computers use binary but people use decimal, binary is what we call base 2 because it only has 2 numbers. Decimal is base 10 because it has 10 numbers.


Click here to download a decimal to binary converter I created

Download my IP address to binary converter