Binary to Decimal Converter

Binary to Decimal Converter

Enter a binary number (0s and 1s) and convert it to its decimal equivalent instantly

Binary Input

Only 0s and 1s are allowed. Maximum 32 digits.
1010 (Example 1)
11111111 (Example 2)
10011001 (Example 3)
110011001100 (Example 4)

Decimal Result

Decimal Equivalent:
0

Calculation Steps

Enter a binary number to see the conversion steps here.

Binary to Decimal Converter Tool | Designed for WordPress Integration

This converter accepts binary numbers up to 32 digits and displays the conversion steps.

Every time when router decides to forward a piece of a packet, it performs a calculation . Most network engineers have done that check by hand at some point. “. Bit by bit. Figuring out the network ID. That whole process depends on moving between binary and decimal without freezing up. Honestly? If you’ve ever stared at 11000000.10101000.00000001.00000001 and felt your eyes glaze over, yeah, me too.

This guide is for you. We’ll walk through why binary is the real language of IPv4. How the conversion math actually works (no memorization required—I promise). And how tools like SubnetLab’s converter let you double-check your work fast.

By the end, turning an octet like 11000000 into 192 will feel kinda natural. Like reading a postcode. Or at least, not terrifying. “You can’t really get subnetting until you see why 255 equals 11111111 and 192 equals 11000000. Everything else in IP networking follows from that.

 

Why Binary is Important in IPv4

 

You will learn:
• Why IPv4 uses binary numbers
• How binary and decimal conversion works
• How subnet masks work
• Easy examples you can understand quickly

After using this tool , conversion from binary numbers to into decimal numbers will be easier for you .

Important Binary Values

Decimal Value Binary Value
255 11111111
192 11000000

Once you clearly understand these values, subnetting and IP addressing become much easier to understand.

Example IPv4 address: 192.168.1.100 is Human friendly decimal representation because easy to remember . Routers only understand binary language 0,1

Each octet can range from:
00000000 to 11111111
Which equals:
0 to 255 in decimal

Quick Reference Table

Item Value
Total IPv4 size 32 bits
Octets 4
8 Bits exist per octect.
Binary range 00000000 to 11111111
Decimal range 0 to 255
Total IPv4 addresses 4,294,967,296

Learn Binary Position Values

Binary uses base 2.
Each position has a value:

Binary Position Value
1st 128
2nd 64
3rd 32
4th 16
5th 8
6th 4
7th 2
8th 1

To convert binary to decimal:
• Add the values where the bit is 1
• Ignore the values where the bit is 0
That’s the full method.

Example 1 — Convert 11000000 to Decimal

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Binary:

11000000

Now match the bits with values:

 

128  64  32  16  8  4  2  1

1   1   0   0   0  0  0  0

 

Only 128 and 64 are active.

>128 + 64 = 192

So:

11000000 = 192

Example 2 Full IP Address Conversion

>>>>>>>>>>>>>>>>IP Address:

192.168.1.1

Binary form:

 

Decimal  Binary

192      11000000

168      10101000

1        00000001

1        00000001

 

For 168:

10101000

Active values are:

128 + 32 + 8 = 168

Understanding Subnet Masks

Subnet masks also use binary.
>Example subnet mask: 255.255.255.0
Binary version: 11111111.11111111.11111111.00000000

The 1s show the network portion.
>The 0s show the host portion.
>CIDR notation is a short form of subnet masks.
>Example: /24
means: 24 ones in the subnet mask.
>So: 11111111.11111111.11111111.00000000 equals: 255.255.255.0

Example 3 Finding Network ID

Suppose:
• IP Address = 192.168.1.55
• Subnet Mask = 255.255.255.0

Binary form:

IP Address     11000000  10101000  00000001  00110111

Subnet Mask    11111111  11111111  11111111  00000000

When we apply the AND operation:
| Result | 11000000 | 10101000 | 00000001 | 00000000 |
Decimal result: 192.168.1.0
This is the network ID.

Common Subnet Masks

CIDR Subnet Mask Hosts
/8 255.0.0.0 16,777,214
/16 255.255.0.0 65,534
/24 255.255.255.0 254
/25 255.255.255.128 126
/26 255.255.255.192 62
/27 255.255.255.224 30
/28 255.255.255.240 14
/29 255.255.255.248 6
/30 255.255.255.252 2

As subnet masks grow larger, available hosts become smaller.

Decimal to Binary Conversion

You can also convert decimal numbers into binary.
Example: Convert 172 into binary.
Start from 128 and move down.

Value  Fits?

128    Yes

64     No

32     Yes

16     No

8      Yes

4      Yes

2      No

1      No

 

Binary result: 10101100

Check: 128 + 32 + 8 + 4 = 172

Correct.

Common Binary Values

Decimal Binary
0 00000000
1 00000001
10 00001010
128 10000000
168 10101000
172 10101100
192 11000000
224 11100000
240 11110000
248 11111000
252 11111100
254 11111110
255 11111111

Real Networking Uses

Access Control Lists (ACLs)
Wildcard masks is used in Cisco Routers .
>Example: 10.0.0.0 0.255.255.255
Wildcard masks are the opposite of subnet masks.
>They help routers decide which IP addresses match a rule.

VLSM
VLSM helps divide networks into smaller subnetworks.
>Example: A /28 subnet has: 11110000 in the last octet.
>That means blocks increase by 16: 0, 16, 32, 48, and so on.

IPv6
Hexadecimal value use in IPv6 because it does not accept decimal, but binary still works the same way .
>CIDR notation like /64 still means network bits.

Frequently Asked Questions

Why does an IPv4 octet stop at 255?
>Because 8 bits can only store values from 0 to 255.
11111111 is the largest possible 8-bit binary number.

What is the difference between subnet mask and wildcard mask?
• Subnet mask uses 1s for network bits
• Wildcard mask uses 1s for variable bits
Wildcard masks are commonly used in Cisco ACLs.

Is binary important for CCNA?
Yes. Binary understanding is very important for:
• Subnetting
• CIDR
• VLSM
• Network calculations

Open the Binary to Decimal Converter →

Final Words

Binary-to-decimal conversion will be easy for you after using our simple tool .You will also following things as described below.
• Learn the binary position values
• Practice common subnet masks
• Convert numbers regularly

Once you understand binary, subnetting and networking become much easier to understand.