Binary IP to Dotted Decimal Converter | Step-by-Step Tool

Binary IP to Decimal Converter

Enter each 8-bit octet and convert to dotted-decimal, integer, and hex

Binary IPv4 Address
Octet 1
.
Octet 2
.
Octet 3
.
Octet 4
⚡ Quick examples:

How to Convert a Binary IP Address to Dotted-Decimal Format

Every device connected to an IP network is identified by an IPv4 address — a 32-bit number stored internally by computers and routers as a sequence of ones and zeros. Because a raw 32-bit string like 11000000101010000000000100000001 is nearly impossible for a human to read, memorize, or communicate accurately, engineers standardized a much friendlier notation called dotted-decimal format.

The core idea is elegantly simple: split the 32-bit string into four equal groups of 8 bits each (called octets), convert each octet independently from binary to a decimal number between 0 and 255, and then join the four decimal values with dots. The result is the familiar address format you already know, such as 192.168.1.1.

Mastering this conversion process by hand is a fundamental skill required for the CCNA and CompTIA Network+ certifications, and understanding it deeply will make every subnetting concept you encounter afterward feel intuitive rather than mechanical.

The 8-Bit Positional Weight System

Binary is a base-2 numbering system, which means every digit — called a bit — can only hold one of two values: 0 or 1. The key to converting any binary number to decimal is understanding that each bit position carries a fixed positional weight, and those weights are always powers of 2.

In an 8-bit octet, the leftmost bit (called the Most Significant Bit, or MSB) carries the highest weight of 27 = 128, and the weights decrease by half as you move one position to the right, down to the rightmost bit (the Least Significant Bit, or LSB) which carries a weight of 20 = 1. To find the decimal value of an octet, you simply look at each bit: if the bit is 1, you include its positional weight in your running total; if the bit is 0, you ignore it (multiply by zero).

The table below shows all eight bit positions and their corresponding decimal weights, which you should commit to memory as they are the backbone of all subnetting arithmetic.

Bit Position 7 (MSB) 6 5 4 3 2 1 0 (LSB)
Power of 2 27 26 25 24 23 22 21 20
Decimal Weight 128 64 32 16 8 4 2 1

Step-by-Step Worked Example

Let us walk through the complete conversion of the binary address 11000000.10101000.00000001.00000001 into its dotted-decimal form. Notice that the four octets are already separated by dots in the binary representation, which is a common notation used in textbooks and networking tools to make the grouping visually obvious. We process each of the four octets one at a time, from left to right.

Octet 1 — 11000000

Write out each bit alongside its positional weight, multiply, and sum the results. Only the bits that are 1 contribute a non-zero value to the total, so bits that are 0 simply add nothing.

  • Bit 7 (weight 128): 1 × 128 = 128
  • Bit 6 (weight 64): 1 × 64 = 64
  • Bit 5 (weight 32): 0 × 32 = 0
  • Bit 4 (weight 16): 0 × 16 = 0
  • Bit 3 (weight 8): 0 × 8 = 0
  • Bit 2 (weight 4): 0 × 4 = 0
  • Bit 1 (weight 2): 0 × 2 = 0
  • Bit 0 (weight 1): 0 × 1 = 0

Adding the contributing values: (1 × 128) + (1 × 64) + (0 × 32) + (0 × 16) + (0 × 8) + (0 × 4) + (0 × 2) + (0 × 1) = 128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = 192. Octet 1 evaluates to 192.

Octet 2 — 10101000

Applying the same positional weight method: the bits at positions 7, 5, and 3 are 1, contributing weights of 128, 32, and 8 respectively. All other bits are 0 and contribute nothing. The full expansion is (1 × 128) + (0 × 64) + (1 × 32) + (0 × 16) + (1 × 8) + (0 × 4) + (0 × 2) + (0 × 1) = 128 + 0 + 32 + 0 + 8 + 0 + 0 + 0 = 168. Octet 2 evaluates to 168.

Octet 3 — 00000001

Only the rightmost bit (position 0, weight 1) is set to 1. Every other bit is 0. The expansion is (0 × 128) + (0 × 64) + (0 × 32) + (0 × 16) + (0 × 8) + (0 × 4) + (0 × 2) + (1 × 1) = 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 = 1. Octet 3 evaluates to 1.

Octet 4 — 00000001

Octet 4 is identical to Octet 3 — only the LSB is active. By the same calculation, the result is 1. Octet 4 evaluates to 1.

Final Assembly — Joining the Four Octets

Now that all four octets have been converted independently, assemble the final dotted-decimal IP address by joining the four decimal values with a dot (.) separator, in the original left-to-right order. The result is: 192 . 168 . 1 . 1 = 192.168.1.1. This is one of the most recognizable IP addresses in networking — the default gateway address used by millions of home and small-office routers worldwide.

🏆 The Golden Rule of IPv4 Octets: Because each octet is exactly 8 bits wide, its decimal value can never fall below 0 or exceed 255. You can verify both boundaries instantly using the weight table. When all 8 bits are 1 — the pattern 11111111 — you add all eight weights together: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. This is the absolute maximum. When all 8 bits are 0 — the pattern 00000000 — every multiplication produces zero, giving a total of exactly 0. This is the absolute minimum.

Therefore, every individual octet in any valid IPv4 address will always be a whole number in the range 0 to 255, and any address containing a value outside this range — such as 192.168.300.1 — is immediately invalid. This is a concept you will see tested directly on the CCNA and Network+ exams.

Why This Skill Matters Beyond the Exam

Understanding binary-to-decimal conversion is not just an academic exercise for passing certification exams — it is the foundational skill that unlocks every other advanced networking concept. Subnet masking, CIDR notation, wildcard masks, route summarization, and VLSM all require you to mentally or manually toggle between binary and decimal representations of IP addresses.

When you see a subnet mask of 255.255.255.0 and immediately recognize it as 24 consecutive 1-bits followed by 8 zero-bits in binary, or when you understand why a /26 prefix creates exactly 64-address blocks, you are using this exact skill.

The Binary to Decimal Converter tool above this guide is designed to reinforce this mental model visually — use it actively with different addresses until the eight positional weights (128, 64, 32, 16, 8, 4, 2, 1) become second nature, because the day you internalize that table is the day subnetting stops feeling difficult.

Subscribe
Notify of
guest

0 Corrections & Clarifications