CIDR Aggregator
Paste a list of IPv4 networks and get the minimal CIDR blocks that cover them, or convert between an IP range and its CIDR list. Nothing is sent to any server.
Resulting CIDR blocks
| CIDR | Range (start – end) | Addresses |
|---|
Blocks covering the range
| CIDR | Range (start – end) | Addresses |
|---|
Runs locally in your browser · no sign-up · nothing leaves your browser
How it works
The tool takes a list of IPv4 networks (in network/CIDR format or bare IPs, which count as /32) and summarizes it into the minimum set of CIDR blocks covering exactly the same addresses: it first converts each entry to a 32-bit numeric range, merges overlapping or contiguous ranges, and then applies the classic range-to-CIDR algorithm. It also converts both ways: from a start-end range to its CIDR list, and from a CIDR block to its range, mask and address count.
This process is known as route aggregation or supernetting (CIDR, RFC 4632) and it is the basis of how prefixes are announced in BGP and how routing tables and ACLs are compacted. The summary is always exact: the resulting blocks cover the same addresses as the original list, not one more, not one less.
Example: summarizing four /24s and four bare IPs
- Input:
192.168.0.0/24through192.168.3.0/24plus IPs 10.0.0.5, .6, .7 and .8 (eight entries). - The four /24s are contiguous and aligned, so they merge into a single block:
192.168.0.0/22(1,024 addresses). - IPs 10.0.0.5-10.0.0.8 do not align into a single block: they become
10.0.0.5/32,10.0.0.6/31and10.0.0.8/32. - Result: 8 entries reduce to 4 CIDR blocks covering exactly 1,028 addresses.