CIDR Notation
IP/prefix (e.g., 192.168.1.0/24) — the prefix length tells you how many bits belong to the network.
Instant subnet calculations with interactive binary visualization.
192.168.1.0
192.168.1.255
192.168.1.1
192.168.1.254
192.168.1.1
/24
255.255.255.0
0.0.0.255
24
8
256
254
2
Class C
192.0.0.0 - 223.255.255.255
255.255.255.0 (/24)
254
Private
Private
| Network | First | Host | CIDR |
|---|
Five core concepts that explain how CIDR works and why it matters.
IP/prefix (e.g., 192.168.1.0/24) — the prefix length tells you how many bits belong to the network.
Dotted-decimal form of the prefix. /24 = 255.255.255.0. Network bits are 1, host bits are 0.
Every IPv4 address is 32 bits. The first N bits = network, remaining 32-N bits = host.
Supernetting combines adjacent blocks (e.g., four /24s → one /22), keeping global routing tables small.
Variable Length Subnet Masking lets you carve a network into differently-sized subnets for efficient allocation.
| Prefix | Subnet Mask | Wildcard | Total | Usable | Block Size |
|---|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | 16,777,216 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | 8,388,608 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | 4,194,304 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | 2,097,152 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | 1,048,576 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | 524,288 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | 262,144 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | 131,072 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | 65,536 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | 32,768 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | 16,384 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | 8,192 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | 4,096 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | 2,048 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | 1,024 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | 512 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | 256 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | 128 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | 64 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | 32 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | 16 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | 8 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | 4 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | 1 |
Usable = Total − 2 (network + broadcast), except /31 (2 usable, RFC 3021) and /32 (1 host).
Ranges not routed on the public internet — safe for internal use with NAT.
10.0.0.0/816.7MClass A private — 16.7M addresses, largest private block
172.16.0.0/121.0MClass B private — 1M addresses across 16 contiguous /16s
192.168.0.0/1665.5KClass C private — 65K addresses, most common for home/small office
127.0.0.0/8LoopbackLoopback — host talks to itself (127.0.0.1 = localhost)
169.254.0.0/16Link-localLink-local — auto-assigned when DHCP fails (APIPA)
100.64.0.0/10CGNATCGNAT (Carrier-grade NAT) — shared address space used by ISPs
Three common network designs — click any to load it in the calculator above.
10.0.0.0/16InteractiveStandard VPC with /24 subnets per Availability Zone for high availability.
192.168.10.0/24InteractiveTypical small office network divided into departmental /26 subnets.
10.255.255.0/30InteractiveRouter-to-router link using RFC 3021 /31 or traditional /30.
All examples are interactive — click to populate the calculator and explore further.
Common prefixes at a glance and links to related tools.
Prefix, mask, host count, and typical use case.
| Prefix | Mask | Usable Hosts | Typical Use |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Class A networks, large ISPs |
| /16 | 255.255.0.0 | 65,534 | Large enterprises, VPC blocks |
| /24 | 255.255.255.0 | 254 | Standard LAN, most common |
| /26 | 255.255.255.192 | 62 | Department subnets, small offices |
| /28 | 255.255.255.240 | 14 | DMZ, point-to-multipoint |
| /30 | 255.255.255.252 | 2 | Router links (traditional) |
| /31 | 255.255.255.254 | 2* | Router links (RFC 3021) |
| /32 | 255.255.255.255 | 1 | Loopbacks, host routes |
* /31 has 2 usable addresses per RFC 3021 (no network/broadcast).
Specialized calculators for every network task.