# Binary to Decimal Conversion (Free Preview)

You must first complete Numbers and Notations before viewing this Lesson
This is a preview lesson. Please purchase the course to access all lessons.

Let’s look at how we can convert a binary IPv4 address to its dotted decimal equivalent. We will use the following binary IPv4 as an example.

11000000101010000000101000000001

## Step 1: Break down the binary string in to octets as shown below.

Note: Octet = 8 bits

11000000  10101000  00001010  00000001

1. First Octet: 11000000
2. Second Octet: 10101000
3. Third Octet: 00001010
4. Fourth Octet: 00000001

## Step 2: Starting with the first octet, apply the binary positional value.

First Octet: 11000000 Figure Applying the binary positional notation to the first octet.

The result is 128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = 192.

192. ? . ? . ?
Dotted Decimal Notation

## Step 3: Convert the second octet to decimal by applying the binary positional value.

Second Octet: 10101000 Figure Applying the binary positional notation to the second octet.

The result is 128 + 0 + 32 + 0 + 8 + 0 + 0 + 0 = 168.

192.168. ? . ?
Dotted Decimal Notation

## Step 4: Similarly, convert the third octet to decimal by applying the binary positional value.

Third Octet: 00001010 Figure Applying the binary positional notation to the third octet.

The result is 0 + 0 + 0 + 0 + 8 + 0 + 2 + 0 = 10.

192.168.10. ?
Dotted Decimal Notation

## Step 5: Finally, convert the fourth octet to decimal by applying the binary positional value.

Fourth Octet: 00000001 Figure Applying the binary positional notation to the fourth octet.

The result is 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 = 1.

192.168.10.1
Dotted Decimal Notation

Back to: CCNA Routing and Switching 200-125 > IPv4 Addressing