THE TOOLBOX / NETWORKING & INFRASTRUCTURE
Calculate CIDR subnets
and split IP blocks.
Compute IPv4 and IPv6 network boundaries, broadcast addresses, netmasks, ACL wildcard masks, RFC 1918 scopes, and child VPC subnet allocations locally.
THE DETAILS
RFC 4632 IPv4/IPv6 CIDR arithmetic, VPC subnetting, and prefix reference.
1. Step-by-Step Workflow
Enter any IPv4 or IPv6 CIDR block (such as 192.168.1.0/24 or 2001:db8::/48) or select a preset for VPC (/16), LAN (/24), or K8s Pod (/20). Adjust the Split Into Child Prefix number to subdivide the parent block into up to 64 equal child subnets.
2. RFC 4632, RFC 1918 & RFC 3021 Compliance
Built on exact 32-bit and 128-bit BigInt bitwise masks per IETF RFC 4632 (CIDR) and RFC 4291 (IPv6), the calculator automatically classifies RFC 1918 private networks, RFC 6598 Carrier-Grade NAT (100.64.0.0/10), and RFC 3021 /31 point-to-point links.
3. Reverse DNS PTR & IPv4-Mapped IPv6
Alongside standard netmasks and wildcard masks, the right panel computes the binary netmask bit pattern, reverse DNS in-addr.arpa / ip6.arpa zone prefix, and dual-stack IPv4-mapped IPv6 representation (::ffff:xxxx:xxxx).
4. Private Network Planning & Related Tools
Internal VPC topologies, firewall ACL blocks, and Kubernetes pod CIDR plans never leave your browser. Working on Linux server hardening or TLS certificates? Try the Chmod permission calculator, X.509 certificate decoder, and URL inspector.
IPv4 CIDR Reference & CLI Matrix
| CIDR Prefix | Subnet Mask | Wildcard Mask | Total IPs | Usable Hosts |
|---|
/16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
/20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
/24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
/26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
/28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
Common Subnetting Pitfalls & Cloud VPC Gotchas
Cloud VPC Reserved Addresses (AWS, GCP, Azure)
While standard RFC 4632 reserves 2 addresses per subnet (network and broadcast), AWS, Azure, and GCP reserve 5 addresses per VPC subnet (including the router, DNS, and future-use IPs), so a /24 in AWS provides 251 usable IPs rather than 254.
Non-Zero Host Bits in CIDR Input
Passing an interface IP like 192.168.1.42/24 is valid CIDR notation; the bitwise AND operation (ip & mask) normalizes the network boundary to 192.168.1.0/24 automatically.
Overlapping Docker & VPN Subnets
Docker’s default bridge uses 172.17.0.0/16, which often collides with corporate VPNs in 172.16.0.0/12. Allocate non-overlapping slices from 10.x.0.0/16 when designing multi-region VPC peering.
IPv6 Double-Colon (::) Compression
Per RFC 5952, the double-colon (::) zero-compression shorthand can appear at most once in an IPv6 address because multiple :: tokens make the 128-bit expansion ambiguous.
Frequently Asked Questions
How do you calculate usable hosts in an IPv4 CIDR block?
An IPv4 address has 32 bits. A /n prefix leaves (32 - n) host bits, producing 2^(32 - n) total IPv4 addresses. For prefixes from /0 through /30, subtract 2 (the network address and broadcast address) to get usable host IPs. Under RFC 3021, a /31 point-to-point link has 2 usable hosts, and a /32 host route has 1.
What is the difference between a subnet mask and a wildcard mask?
A subnet mask uses 1 bits for the network prefix and 0 bits for the host portion (for example, 255.255.255.0 for /24). A wildcard mask is the bitwise inverse (~netmask, or 0.0.0.255 for /24) used in Cisco ACLs, OSPF network statements, and firewall rules.
How do I split a /16 or /24 VPC network into smaller child subnets?
Enter your parent block (such as 10.0.0.0/16 or 192.168.1.0/24) and increase the Split Into Child Prefix input (for example, /18 for 4 subnets or /26 for 4 subnets). The table displays the exact CIDR, first IP, last IP, and usable host count for each child slice.
Which IPv4 address ranges are reserved for private networks under RFC 1918?
IETF RFC 1918 reserves three private IPv4 ranges that are not routed on the public internet: 10.0.0.0/8 (10.0.0.0–10.255.255.255), 172.16.0.0/12 (172.16.0.0–172.31.255.255), and 192.168.0.0/16 (192.168.0.0–192.168.255.255).
Does the calculator support 128-bit IPv6 CIDR prefixes?
Yes. Passing any compressed or expanded IPv6 block (such as 2001:db8::/48 or fe80::/64) switches the engine to 128-bit BigInt arithmetic, calculating the compressed network address, last address, scope, and child IPv6 subnet splits.