IPv4 ↔ Binary Converter & Subnet Bit Explorer

Convert IPv4 addresses and subnet masks into binary and see exactly which bits belong to the network and which remain available for hosts.

Why Binary Matters in Subnetting

IPv4 addresses contain 32 bits, divided into four 8-bit octets. A CIDR prefix tells you how many of those bits are network bits.

Example: 192.168.10.25/24
The first 24 bits identify the network. The final 8 bits identify hosts within that subnet.
ConceptBinary meaningExample
Network bitCovered by the CIDR prefix/24 = first 24 bits
Host bitLeft after the prefix/24 = last 8 bits
Subnet mask bit 1Network portion255.255.255.0
Subnet mask bit 0Host portion0.0.0.255 in the last octet
Wildcard bit 0Must matchCisco ACL/OSPF matching
Wildcard bit 1IgnoredCisco ACL/OSPF matching

Subnetting Bit Patterns

CIDRLast-octet maskBinaryTotal addressesTraditional usable hosts
/2425511111111256254
/2512810000000128126
/26192110000006462
/27224111000003230
/28240111100001614
/292481111100086
/302521111110042

Related Zee Links Tools

Call WhatsApp