Neatbo.

Aggregate CIDR blocks

Reduce an IPv4 CIDR list without changing its address coverage.

Browser-local processingInputIPv4 CIDR listOutputIPv4 CIDR listUp to 10 MiB per file · File limit: 1
  1. 1Add input
  2. 2Review and run
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run

Review CIDR coverage

Enter one IPv4 CIDR per line. Blank lines and full-line # comments are ignored. Network addresses with host bits are normalized to their network boundary.

Paste CIDR blocks or choose a UTF-8 text file to preview the aggregation.

Coverage is calculated locally. No network lookup or firewall change is made.

CIDR list source
0 characters · 0 bytes
Preparing the tool…

Before you start

Combine duplicate, contained, overlapping, and adjacent IPv4 CIDR blocks into the shortest exact list. Preview address coverage and inspect each resulting range before copying it into an allowlist or rule set.

How to use this tool

  1. Paste one IPv4 CIDR block per line, or choose a UTF-8 text list.
  2. Review input and output counts, unique address coverage, duplicate count, and any host-bit normalization.
  3. Aggregate, inspect each output range, then copy one block or download the complete newline-separated list.

Supported inputs and limits

Up to 10,000 IPv4 CIDR entries, one per line. Blank lines and full-line # comments are ignored. UTF-8 text files are supported.

Host bits are normalized to the network boundary and shown before processing. The output never fills gaps between input blocks.

Aggregate only blocks that share the same intended policy. This tool does not validate destination rule syntax, performance, address ownership, or live network state.

Worked example

Example input

192.0.2.0/25
192.0.2.128/25
198.51.100.0/25
Example options
{}

Example output

192.0.2.0/24
198.51.100.0/25

When something does not work

Enter one valid IPv4 CIDR per line. Fix the line number shown in the preview; only blank lines and full-line # comments are ignored.

Frequently asked questions

Will aggregation add addresses that were not in my input?

No. It returns the smallest CIDR list for the same union of addresses. A gap stays excluded even if including it would shorten the list.

What happens to duplicate or contained CIDR blocks?

They are removed from the output. Adjacent blocks combine when their union can be represented by a broader CIDR; every output block shows its exact address range.

What if a CIDR address has host bits set?

For example, 192.0.2.5/24 is treated as 192.0.2.0/24. The preview reports how many entries were normalized so you can review them.

Can I combine rules with different allow or deny actions?

Keep different policies separate. This tool only aggregates addresses; it does not know the action or priority of each original rule.

Is my list sent to a server?

No. The list is processed in your browser and no network scan or lookup is performed.

Documentation & further reading

Related tools