CIDR Aggregator — Summarise Prefix Lists into Minimal Blocks
Merge adjacent IPv4 prefixes and contiguous subnets into minimal routing blocks.
10 blocks merged into 4 without changing the addresses covered.
When to use the CIDR Aggregator & Supernet Route Summarizer
Shorter route lists
Adjacent prefixes such as 192.168.0.0/24 and 192.168.1.0/24 merge into 192.168.0.0/23, and blocks covered by others are dropped, without changing the addresses covered.
For routing and firewalls
Shorter lists mean lighter BGP routing tables, fewer firewall rules and WireGuard allow lists that are easier to read.
IPv4 and IPv6 together
Mixed lists are split per address family and merged separately, so exports from cloud providers or CDNs can be pasted as they are. Unreadable lines are listed separately so they are easy to fix.
Identical to Python's library
Results are tested against collapse_addresses from Python's standard library on hundreds of random lists, and all match exactly.
Frequently asked questions
When can two blocks merge?
Two blocks merge when they are the same size, adjacent, and the first starts on a multiple of the combined size, for example 10.0.0.0/25 and 10.0.0.128/25.
What happens to overlapping blocks?
Blocks already inside a bigger one are removed, for example 172.16.4.0/22 disappears because it is inside 172.16.0.0/16.
Does the input order matter?
No. The list is sorted before merging, and the result is always ordered from the lowest address. Exact duplicates are dropped automatically too.
Can I use it for BGP prefix lists?
Yes for building the list, but check your peering policy, as many providers reject IPv4 prefixes longer than /24.
Is my data sent to a server?
No. Everything is computed in your browser, so your prefix lists and routing plans stay private.
Similar tools
- CIDR Exclusion & WireGuard AllowedIPs BuilderSubtract LAN or private ranges from 0.0.0.0/0 or any block and get the minimal CIDR list for WireGuard, routing or MikroTik.
- CIDR & IP Range to Full Address List ExpanderExpand IPv4/IPv6 CIDRs and start–end ranges into every individual address, ready to export as TXT for scanners and ACLs.
- IP / CIDR List Diff & Allowlist AuditorCompare two IP/CIDR lists by real address coverage: what was added, removed, or overlaps — ideal for firewall allowlist reviews.
- CIDR Block to First–Last Usable IP Range ConverterExpand any /0–/32 CIDR notation into network, broadcast & total host count.