CIDR Aggregator & Network Summarizer
Aggregate messy lists of IPs, dashed ranges, and CIDR blocks (IPv4 and IPv6) into the smallest possible set of CIDR prefixes. Merges overlapping and adjacent blocks, dedupes, optionally subtracts exclusions, shows before/after prefix and address counts (BigInt), and exports as CIDR list, IP ranges, Cisco ACL, pfSense alias, or nginx allow. 100% client-side.
About CIDR Aggregator & Network Summarizer
Aggregate messy lists of IPs, dashed ranges, and CIDR blocks (IPv4 and IPv6) into the smallest possible set of CIDR prefixes. Merges overlapping and adjacent blocks, dedupes, optionally subtracts exclusions, shows before/after prefix and address counts (BigInt), and exports as CIDR list, IP ranges, Cisco ACL, pfSense alias, or nginx allow. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
How does the CIDR aggregator work?
Each input line (single IP, dashed range a.b.c.d-e.f.g.h, or CIDR block) is converted into a [start, end] numeric interval — IPv4 as a 32-bit BigInt and IPv6 as a 128-bit BigInt. The intervals are sorted, overlapping and adjacent intervals are merged into the smallest covering set, and each merged interval is greedily decomposed back into the minimal set of aligned CIDR prefixes (the same algorithm used by iprange-to-cidr / Python netaddr).
Does it support both IPv4 and IPv6?
Yes. The tool detects the family of each line automatically (':' → IPv6, otherwise IPv4), parses with full IPv6 '::' compression and embedded-IPv4 support, and aggregates IPv4 and IPv6 separately — you'll get two output sections (or only one if all inputs are the same family). BigInt is used throughout so huge ranges like 0.0.0.0/0 or ::/0 are counted mathematically without enumerating every address.
How do exclusions (subtractions) work?
Enter exclusion blocks on a separate line or in the exclusion box. The tool subtracts their intervals from the aggregated set — a single large block may be split into several smaller CIDRs around the excluded hole, exactly like a firewall rule that says 'allow this big network except this small slice'. The before/after counts reflect the post-exclusion totals.
What export formats are supported?
Five formats: CIDR list (one prefix per line), IP ranges (start-end per line), Cisco ACL (`access-list ... permit ip <net> <wildcard> any`), pfSense alias (a `network` alias body, one CIDR per line), and nginx (`allow <cidr>;` directives). All formats handle IPv4 and IPv6 and are copy/download ready.
What extra features does this tool have versus other CIDR aggregators?
(1) Mixed input — IPs, dashed ranges, and CIDRs in one paste. (2) Full IPv6 support with BigInt math. (3) Optional exclusion/subtraction that splits blocks correctly. (4) Before/after prefix and address counts with addresses-saved badge. (5) Five export formats (CIDR, ranges, Cisco ACL, pfSense alias, nginx allow). (6) Per-line parse errors collected and shown with line numbers. (7) CIDR ↔ range expansion both ways. (8) History (localStorage, last 20). (9) Shareable URL encoding input + exclusions. (10) Sort/normalize mode. (11) Address count via BigInt (handles /0 and ::/0 without overflow). (12) 100% client-side — your IP lists never leave the browser.
Related tools
.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Age Calculator
Calculate exact age from a birth date in calendar years/months/days (no negative-day bugs) plus totals in months/weeks/days/hours/minutes/seconds. Next-birthday countdown with weekday. Feb-29 birthday policy toggle. Milestones (1,000 days, 10,000 days, 1 billion seconds). Zodiac sign + Chinese zodiac. Age gap comparison. Shareable URL. 100% client-side.