Overview
Classless Inter-Domain Routing (CIDR, introduced in RFC 1519 and RFC 4632) eliminated rigid Class A, B, and C address boundaries, revolutionizing global internet routing and slowing IPv4 exhaustion. The CIDR Calculator converts between CIDR prefix notation (/n) and dotted-decimal subnet masks, evaluates subnet division potential, and computes parent supernet aggregations.
CIDR notation concisely describes an IP network block with a single slash suffix (such as 10.0.0.0/16 rather than 10.0.0.0 with mask 255.255.0.0). This calculator translates CIDR notation into dotted decimal masks, wildcard masks, total address capacity, and hierarchical subnetting divisions.
Worked Examples
Example 1: Converting 10.0.0.0/16 to Subnet Mask and IP Span
CIDR Block = 10.0.0.0/16, Target Subnet = /24
- Convert /16 prefix: 16 ones followed by 16 zeros = 255.255.0.0.
- Total IP capacity: 2¹⁶ = 65,536 addresses.
- Address span: 10.0.0.0 to 10.0.255.255.
- Dividing into /24 subnets: 2²⁴⁻¹⁶ = 2⁸ = 256 subnets of /24 (254 hosts each).
Final Answer: 255.255.0.0 (/16, 65,536 IPs, 256x /24 subnets)
Example 2: Cloud VPC Block (172.16.0.0/20)
CIDR Block = 172.16.0.0/20, Target Subnet = /24
- Prefix /20 mask: 255.255.240.0.
- Total capacity: 2¹² = 4,096 IP addresses.
- Subnet division: 2²⁴⁻²⁰ = 2⁴ = 16 subnets of /24.
Final Answer: 255.255.240.0 (/20, 4,096 IPs, 16x /24 subnets)
Example 3: Supernetting Adjacent Blocks (/24 to /23)
Two contiguous /24 blocks: 192.168.0.0/24 and 192.168.1.0/24
- Aggregate by decrementing prefix: /24 − 1 = /23.
- Supernet mask: 255.255.254.0.
- Combined block: 192.168.0.0/23 (512 total addresses).
Final Answer: 192.168.0.0/23 (Supernet)