Calculate the minimal CIDR blocks covering a given IP range
IP Range
CIDR Blocks 12
246 total addresses
1
10.0.0.5/322
10.0.0.6/313
10.0.0.8/294
10.0.0.16/285
10.0.0.32/276
10.0.0.64/267
10.0.0.128/268
10.0.0.192/279
10.0.0.224/2810
10.0.0.240/2911
10.0.0.248/3112
10.0.0.250/32About Range Expansion
Minimal CIDR Cover
Any contiguous IPv4 range can be expressed as a small set of power-of-two-aligned CIDR blocks. This tool produces the minimal set covering exactly the inclusive range — useful for ACLs, firewall rules, and BGP prefix lists.
How it Works
At each step the algorithm picks the largest block that is aligned to the current IP and does not exceed the end IP, then advances past it. Block sizes are always powers of two.