CIDR Visualizer & Subnet Calculator
NetworkingVisualize any IPv4 CIDR block. See the binary breakdown with the network/host boundary highlighted, the address range as a bar, and split a network into smaller subnets or aggregate adjacent ones into one supernet.
Address Range
Binary Breakdown
Network bits in red, host bits in green. The vertical line is the /24 mask boundary.
Network Details
Reverse Lookups
Split into smaller subnets
| CIDR | Network | First usable | Last usable | Broadcast | Hosts |
|---|---|---|---|---|---|
| 192.168.1.0/26 | 192.168.1.0 | 192.168.1.1 | 192.168.1.62 | 192.168.1.63 | 62 |
| 192.168.1.64/26 | 192.168.1.64 | 192.168.1.65 | 192.168.1.126 | 192.168.1.127 | 62 |
| 192.168.1.128/26 | 192.168.1.128 | 192.168.1.129 | 192.168.1.190 | 192.168.1.191 | 62 |
| 192.168.1.192/26 | 192.168.1.192 | 192.168.1.193 | 192.168.1.254 | 192.168.1.255 | 62 |
Supernet (CIDR aggregation)
Paste two or more CIDR blocks (one per line) and we'll find the smallest single CIDR that contains all of them — the inverse of subnetting.
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation writes an IPv4 network as address/prefix, where the prefix is the number of leading 1-bits in the subnet mask. For example, 192.168.1.0/24 means a 24-bit network mask (255.255.255.0), giving 256 total addresses with 254 usable hosts.
CIDR was introduced in RFC 1519 (1993) to replace the wasteful Class A/B/C system. With CIDR, network sizes are no longer fixed at 8, 16, or 24 bits — you can allocate exactly as much address space as needed.
How to read the binary visualization above
The mask boundary at /24 splits each address into two parts:
- The network bits (left of the boundary) are identical for every address in the subnet. Setting them all and zeroing the rest gives the network address.
- The host bits (right of the boundary) vary across the addresses in the subnet. All zeros = network address, all ones = broadcast address, everything in between is a usable host.
- The subnet mask is just N ones followed by (32 − N) zeros — there is no other valid form.
255.255.255.192is /26 because11111111.11111111.11111111.11000000has 26 leading 1s.
How many usable hosts in each subnet size?
| CIDR | Subnet mask | Total | Usable hosts | Typical use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | Large enterprise / former Class A |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Campus network / former Class B |
| /22 | 255.255.252.0 | 1,024 | 1,022 | Mid-size office |
| /24 | 255.255.255.0 | 256 | 254 | Small office / VLAN |
| /25 | 255.255.255.128 | 128 | 126 | Half a /24 |
| /26 | 255.255.255.192 | 64 | 62 | Quarter of a /24 |
| /27 | 255.255.255.224 | 32 | 30 | AWS subnet minimum |
| /28 | 255.255.255.240 | 16 | 14 | Small DMZ |
| /29 | 255.255.255.248 | 8 | 6 | Server cluster |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point WAN link |
| /31 | 255.255.255.254 | 2 | 2 | RFC 3021 P2P (no broadcast) |
| /32 | 255.255.255.255 | 1 | 1 | Single host route |
Usable hosts = 2(32 − prefix) − 2 for IPv4 subnets smaller than /31 (the network and broadcast addresses are reserved). /31 and /32 are special cases.
Reserved IPv4 ranges to remember
- 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — RFC 1918 private ranges, not routable on the public internet.
- 127.0.0.0/8 — loopback, for software talking to itself on a host.
- 169.254.0.0/16 — link-local (APIPA), used when DHCP fails.
- 100.64.0.0/10 — RFC 6598 carrier-grade NAT.
- 224.0.0.0/4 — multicast (everything starting with 224 to 239).
- 0.0.0.0/8 and 240.0.0.0/4 — reserved or special-use.
Frequently Asked Questions
What is the difference between subnet mask and CIDR notation?
They describe the same thing in different forms. 192.168.1.0 255.255.255.0 and 192.168.1.0/24 are equivalent — the /24 is just a count of leading 1-bits in the mask. CIDR notation is shorter and is the modern standard.
How many usable hosts are in a /24 subnet?
A /24 has 256 total addresses and 254 usable hosts. Two addresses are always reserved: the network address (.0, all host bits 0) and the broadcast address (.255, all host bits 1).
Why is /31 special?
RFC 3021 allows /31 subnets on point-to-point links to use both addresses, with no network or broadcast address. Without this, every WAN link between two routers would waste 2 of 4 addresses. /31 is now standard practice on router-to-router links.
What is supernetting (CIDR aggregation)?
Combining several adjacent smaller CIDR blocks into one larger block. For example, 192.168.0.0/24 + 192.168.1.0/24 aggregates into 192.168.0.0/23. The blocks must be contiguous, the same size, and aligned on a power-of-two boundary.
How is the broadcast address calculated?
Take the network address and set all host bits to 1. For 192.168.1.0/24, the host bits are the last 8, so the broadcast is 192.168.1.255. For 10.5.0.0/14, the host bits are the last 18, so the broadcast is 10.7.255.255.
What is the wildcard mask?
The bitwise inverse of the subnet mask. For /24, the mask is 255.255.255.0 and the wildcard is 0.0.0.255. Cisco ACLs and OSPF use wildcard masks because matching on host bits is the natural operation for those protocols.
Need only the basic numbers? See the simpler IP/Subnet Calculator. For binary/hex conversion outside networking, the Number Base Converter handles arbitrary bases.