CIDR Aggregator

What is a CIDR Aggregator?

Merge and summarize multiple adjacent, overlapping, or redundant IPv4 CIDR blocks (e.g. `192.168.0.0/24` and `192.168.1.0/24` -> `192.168.0.0/23`) into the absolute minimal set of subnets.

Why Use This Tool?

  • BGP Route Summarization: Summarize long lists of IP subnets into compact routing table entries.
  • Firewall Rule Cleanup: Consolidate hundreds of individual IP subnet rules into minimal CIDR lists for Cloudflare, AWS, or iptables.
  • Network Optimization: Eliminate redundant overlapping IP entries.

How to Use

  1. Paste a list of IPv4 addresses or CIDR subnets (one per line or comma-separated).
  2. Click "Aggregate CIDR Blocks".
  3. View collapsed minimal CIDR list and percentage reduction ratio.

Real Working Example

Input:

Subnets:
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24

Output Result:

Aggregated CIDR Result: 192.168.0.0/22 | Reduction: 4 rules reduced to 1 optimal rule (-75%)

Important Technical Details & Standards

  • Trie / Binary Tree Aggregation Algorithm: Builds a binary prefix trie to merge contiguous power-of-two sibling subnets.
  • Redundant Subnet Pruning: Automatically strips smaller subnets that are completely contained within larger subnets.
  • Client-Side Engine: Fast local calculation in browser memory.

Related Networking & Security Tools

Frequently Asked Questions

How does CIDR aggregation work?

It combines adjacent subnets sharing a common binary prefix into a single larger CIDR block.

Can it merge overlapping IP addresses?

Yes, redundant smaller subnets inside larger blocks are pruned automatically.

Is it free?

Yes, 100% free.

How many CIDR blocks can I aggregate at once?

Paste thousands of CIDR blocks to summarize in milliseconds.

Is my network IP list private?

Yes, all CIDR aggregation processes 100% locally inside your web browser.