IPv4 Subnet Calculator & 32-Bit Binary Explorer
Inspect how a 32-bit IPv4 address splits into network and host bits. Edit the CIDR address, drag the prefix slider, or click any bit below to recalculate masks and host ranges instantly.
32-Bit Binary Bit Matrix
Click any bit to flip 0 and 1 in real time
11000000.10101000.00000001.00001010
11111111.11111111.11111111.00000000
Network Telemetry
Subnet Splitter
Divide 192.168.1.0/24 into equal child networks
| # | Subnet CIDR | Network ID | Usable Host Range | Broadcast | Action |
|---|
CIDR & Subnet Mask Reference Chart (/8 to /32)
Click any prefix row to apply that subnet mask in the visualizer above
| CIDR | Subnet Mask | Wildcard Mask | Total IPs | Usable Hosts |
|---|
Complete IPv4 Subnetting & CIDR Guide
Core networking concepts behind binary bit boundaries, RFC 1918 private blocks, ACL wildcard masks, and VLSM subnet splitting.
1. How CIDR Notation & Subnet Masks Work
Classless Inter-Domain Routing (CIDR) appends a slash prefix such as /24 to an IPv4 address to specify how many leading bits belong to the network prefix. The remaining 32 − prefix bits identify hosts inside that subnet, enabling flexible block sizing beyond legacy Class A, B, and C boundaries.
2. Private IPv4 Ranges (RFC 1918) & Special Scopes
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private LANs, cloud VPCs, and container bridges. Special scopes include Loopback (127.0.0.0/8), Carrier-Grade NAT (100.64.0.0/10), and Link-Local (169.254.0.0/16).
3. Wildcard Masks in Cisco ACLs & OSPF
A wildcard mask is the bitwise inverse of a subnet mask, calculated by subtracting each octet from 255. In Cisco IOS ACLs and OSPF network statements, a 0 bit enforces an exact match while a 1 bit acts as a don't-care bit—for instance, 0.0.0.255 matches an entire /24 block.
4. Subnetting, VLSM & Point-to-Point Links (/30, /31, /32)
Borrowing n host bits divides a parent network into 2^n equal subnets. For router-to-router links, /30 yields 2 usable hosts out of 4 IPs, whereas RFC 3021 /31 assigns both addresses without broadcast overhead. Use /32 for exact single-host routes.
Frequently Asked Questions
Quick answers to common IPv4 CIDR, subnet mask, and routing questions
What is CIDR notation and how do I read /24?
CIDR (Classless Inter-Domain Routing) notation appends a slash and bit count to an IPv4 address, such as 192.168.1.0/24. The /24 prefix means the first 24 bits identify the network (subnet mask 255.255.255.0) and the remaining 8 bits identify hosts, yielding 256 total addresses and 254 usable host IPs.
How do you calculate the number of usable hosts in a subnet?
Subtract the CIDR prefix length from 32 to find the number of host bits (h = 32 − prefix). Total addresses equal 2^h. For standard subnets (/1 through /30), subtract 2 for the Network Address and Broadcast Address, giving 2^h − 2 usable host addresses.
What is the difference between a /30 and /31 subnet mask (RFC 3021)?
A /30 subnet (255.255.255.252) provides 4 total addresses and 2 usable host IPs after reserving the network and broadcast addresses. Under RFC 3021, a /31 subnet (255.255.255.254) omits the broadcast address on point-to-point router links, allowing both of its 2 IP addresses to be assigned to endpoints and doubling address efficiency.
What is a wildcard mask and how is it used in Cisco ACLs and OSPF?
A wildcard mask is the bitwise inverse of a subnet mask, found by subtracting each octet from 255 (for example, 255.255.255.0 becomes 0.0.0.255). In Cisco IOS Access Control Lists and OSPF network statements, a 0 bit requires an exact IP bit match while a 1 bit ignores that bit position.
Which IPv4 address ranges are reserved for private networks (RFC 1918)?
RFC 1918 reserves three private IPv4 blocks that are not routable on the public Internet: 10.0.0.0/8 (16,777,216 addresses), 172.16.0.0/12 (1,048,576 addresses), and 192.168.0.0/16 (65,536 addresses).
Why are the first and last IP addresses in a standard subnet reserved?
In standard subnets from /1 to /30, the first address (all host bits set to 0) is the Network ID used by routers to identify the subnet, and the last address (all host bits set to 1) is the Broadcast Address used to deliver packets to every host on that subnet simultaneously.
What does a /32 subnet mask mean?
A /32 prefix corresponds to subnet mask 255.255.255.255, meaning all 32 bits are fixed as network bits and zero bits remain for hosts. It represents a single exact IPv4 host route, commonly used for loopback interfaces, firewall allowlists, and BGP /32 host advertisements.