Network & Ops

CIDR Toolbelt

All tools

Clean up IPv4 allowlists: find overlaps, merge ranges, diff two lists and export Terraform.

How it works

Four simple steps

1

Paste CIDR lists

Add one or two IPv4 CIDR sets to compare.

2

Find overlaps

Merge adjacent ranges and highlight collisions.

3

Diff two lists

See added and removed CIDRs for SG reviews.

4

Export SG rules

Format results for AWS security group ingress.

CIDR Toolbelt

About CIDR Toolbelt

A security group has grown to forty rules over three years, and nobody is sure which ranges overlap or which ones a new proposal actually changes. Reading them line by line is how a /16 hides behind a list of /24s. CIDR Toolbelt does the comparison with exact integer math.

Paste list A, one block per line. Comments after a # are kept, trailing commas or quotes are tolerated, and a bare address is treated as a /32. Every block is normalized to its network address, with a 'host bits set' label when the input was written like 10.0.1.5/24. The parsed table shows the input, normalized form, address range, address count and comment. The overlap panel checks every pair and names the relationship: contains, contained by, or partially overlaps. The summary line reports total unique addresses, overlap count, and how many blocks the list merges down to.

The Output menu offers merged CIDRs (adjacent and overlapping ranges combined, then re-split into the fewest aligned blocks), the normalized list, plain address ranges, a Terraform ingress block using the port you set, and a diff of list A against list B. The diff compares normalized strings, not coverage, so replacing two /24s with the /23 that covers them shows up as changes even though the addresses are the same. Merge both lists first if you want to compare reach.

For the details of a single block, such as its broadcast address, use the Subnet Calculator. When the change is part of a larger infrastructure update, the Terraform plan summarizer helps review it. More tools are on the network tools hub. All parsing runs in your browser.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

The address you typed is not the first address of its block, as in 10.0.1.5/24. Most systems quietly treat it as 10.0.1.0/24, but some reject it. The tool shows the normalized form so you can fix the source list.

No. It writes one ingress entry per block in list A as normalized, keeping comments in the description. Switch to Merged CIDRs, paste that result back into list A, and export again if you want the shortest rule set.

No. Only IPv4 addresses with prefixes from 0 to 32 are accepted. IPv6 lines are reported as invalid with their line number so you can handle them separately.

View more FAQs

Related tools

View all

Subnet Calculator

Calculate IPv4 network, broadcast, and host ranges from CIDR.

Open

HTTP Status Codes

Browse and search HTTP status codes with plain-English meanings.

Open

User-Agent Parser

Parse browser user-agent strings into readable components.

Open

HTML Formatter

Beautify and indent HTML markup.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools