Subnet / CIDR Range Expander & Aggregator
Expand a range into individual IPs, or aggregate ranges into minimal CIDR blocks.
256 total addresses
What is this tool?
Expand mode lists every host IP in a single CIDR or IP range (capped at 4,096 addresses to keep the page responsive — larger ranges show a count plus first/last addresses instead). Aggregate mode takes multiple CIDRs, IP ranges, and/or bare IPs (auto-promoted to /32, so raw access logs or IP lists paste in directly), merges overlapping or adjacent ones, and summarizes the result into the minimal set of properly-aligned CIDR blocks — the standard greedy CIDR-summarization algorithm used by routers and firewall rule generators. Distinct from the IPv4 Subnet Calculator, which computes network/broadcast/host-range details for a single CIDR rather than expanding or merging ranges.
How to use it
- Choose Expand or Aggregate.
- Expand: enter one CIDR or IP range. Aggregate: enter multiple CIDRs/ranges/bare IPs, one per line.
- Copy the resulting address list or minimal CIDR blocks.
Related network & web security tools
- IPv4 Subnet / CIDR CalculatorGet subnet mask, network, broadcast, and usable host range from an IP and prefix.
- CORS Header GeneratorBuild Access-Control-* headers plus ready-to-paste Nginx/Apache/Express/ASP.NET snippets.
- Content Security Policy (CSP) BuilderAssemble a CSP header from common directives, with antipattern warnings.