Advanced CIDR Calculator & Subnet Visualizer
Professional-grade network calculator supporting IPv4 and IPv6. Features dual-stack logic, binary visualization, deep subnetting analysis, and hardware config exports for Cisco/Linux.
Select a format...
| Network | Range | Broadcast |
|---|---|---|
| Calculate to see subnets... | ||
About
Subnetting is the backbone of efficient network design, yet it remains one of the most error-prone tasks in systems engineering. A single bit flip in a mask calculation can isolate a subnet, overlap routes, or expose broadcast traffic to the wrong segment. This tool is designed to eliminate those risks by providing bit-perfect precision for both IPv4 and IPv6 architectures.
Unlike basic calculators that stop at the decimal representation, this engine visualizes the binary logic occurring at the packet level. It handles the 32-bit constraints of legacy infrastructure and the 128-bit complexity of modern addressing with equal depth. We incorporate RFC 1918 compliance checks, Reserved bogon detection, and granular host range boundaries to ensure your configurations are production-ready before deployment.
Formulas
The core logic of subnetting relies on bitwise operations against the IP address binary string and the Subnet Mask.
Where IP is the 32-bit integer of the address, Mask is the subnet mask derived from the CIDR prefix, and ¬ represents the bitwise NOT (inversion) operator used to calculate the Wildcard.
Reference Data
| CIDR | Subnet Mask | Wildcard Mask | Total Addresses | Usable Hosts |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 (Host Route) |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 (PtP Links) |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 |