← ← All Tools

🧮 CIDR Aggregator

Batch-aggregate IPv4 / IPv6 CIDRs, IP ranges, and single IPs locally in your browser. Auto-buckets v4/v6, merges adjacent and containing blocks into the minimum CIDR list. Supports set subtraction (A − B), 8 export formats (CIDR / range / netmask / wildcard / CSV / JSON / nginx / iptables), line-level error diagnostics, and normalization warnings. Accepts flexible delimiters including newline, comma, full-width, space, tab, and semicolon.

📦 Local processing: paste multiple IPv4 / IPv6 CIDRs, IP ranges, or single IPs; the tool merges adjacent and containing blocks into the minimum CIDR list. Supports 8 export formats, set subtraction (A minus B), and line-level error diagnostics. Delimiter-friendly: newline, comma (incl. full-width), Chinese enumeration comma, space, tab, semicolon, and BOM. Input data is not uploaded by the tool.

Operation

Status Initializing
Input Items 0
Output Items 0
Reduction
IPv4 Addresses 0
IPv6 Addresses 0
Errors / Warnings 0 / 0

Output Format

Note: Netmask / wildcard apply to IPv4 only. IPv6 lines in those formats fall back to CIDR. The nginx and iptables outputs are config snippets with header comments and need your own review before deployment.

IPv4 (0 items)
 
IPv6 (0 items)
 

Scope: V1 performs same-version aggregation (IPv4 and IPv6 merged independently, no cross-version merging) and set subtraction (A − B, per-version). Intersection, symmetric difference, ASN/WHOIS, preset operator blocks, bit-map visualizers, and OCR inputs are out of scope.

Input limit: each textarea processes up to 50,000 lines; overflow is truncated with a warning in the diagnostics list. IPv4 uses unsigned 32-bit math, IPv6 uses 128-bit BigInt.

Normalization: if the host bits are non-zero (e.g. 192.168.1.5/24), the tool normalizes to the containing subnet (192.168.1.0/24) and records a warning in the diagnostics list; the input is not rejected.

Privacy note: parsing, aggregation, subtraction, formatting, and download all execute locally in the current browser. Avoid pasting sensitive production ranges or real customer IP lists.

Free online CIDR aggregator. Batch-merge IPv4 / IPv6 CIDRs, IP ranges, and single IPs locally in your browser. Auto-buckets v4/v6 into side-by-side outputs, exports 8 formats (CIDR list / IP range / netmask / wildcard / CSV / JSON / nginx allow-deny / iptables -s), supports set subtraction (A minus B), line-level error diagnostics, and host-bit normalization warnings. Accepts flexible delimiters including newline / comma / full-width / tab / semicolon / BOM. Local processing — input data is not uploaded by the tool.