CIDR Calculator
Convert IP ranges to CIDR and expand CIDR blocks.
CIDR Blocks
CIDR Details
Network Address
-
Broadcast Address
-
IP Range
-
Total IPs
-
IP Addresses
CIDR Reference
| CIDR | Subnet Mask | Total IPs | Usable |
|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 |
| /30 | 255.255.255.252 | 4 | 2 |
| /28 | 255.255.255.240 | 16 | 14 |
| /24 | 255.255.255.0 | 256 | 254 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
📘 How It Works
1
Range to CIDR
Calculates the CIDR blocks needed to exactly cover an IP range from start to end.
2
CIDR Expansion
Lists all IP addresses within a CIDR block (limited to /24 or smaller for display).
3
Range Calculation
Uses binary math to find the largest power-of-2 aligned blocks that fit within the range.
💡 Common Use Cases
Firewall Rules
Convert IP ranges to CIDR blocks for security group and ACL configurations.
Route Summarization
Aggregate multiple routes into fewer CIDR blocks to reduce routing table size.
IP Allocation
Plan and document IP address assignments using CIDR notation.
Cloud Networking
Define VPC subnets, peering ranges, and security policies in AWS/Azure/GCP.