IP Range to CIDR Converter
Aggregate any start–end IPv4 range into minimal bit-aligned CIDR blocks, or expand CIDR lists back into IP ranges.
Related developer tools
All Developer toolsIPv4 Subnet & CIDR Calculator
Calculate IPv4 network ID, broadcast, subnet/wildcard masks, usable host range, RFC 1918 scope, and binary bits.
Base64 Encoder & Decoder
Encode or decode UTF-8 text and convert local files into Base64 data URLs.
URL Encoder & Decoder
Percent-encode or decode URLs and inspect or edit query string parameters.
UUID Generator
Generate cryptographically random UUID v4 or time-ordered UUID v7 identifiers.
About IP Range to CIDR Converter
Convert any arbitrary IPv4 start–end address range into the minimal exact set of bit-aligned CIDR blocks for firewall rules and allowlists, or expand CIDR lists back into start and end IP ranges.
How to use IP Range to CIDR Converter
- 1
Choose IP Range → Minimal CIDRs and enter your Start IPv4 and End IPv4 addresses.
- 2
Copy the resulting minimal CIDR block list—or switch to CIDR List → IP Ranges to expand multiple CIDRs at once.
- 3
Verify the exact total IP count covered by your range.
Frequently asked questions
Why does a single IP range sometimes produce multiple CIDR blocks?
CIDR blocks must be power-of-two sized and bit-aligned to their start address, so non-aligned ranges (like .10 to .200) require several exact blocks to cover the range without including extra IPs.
Are any IP addresses outside my start–end range included?
No. The aggregation algorithm calculates the exact minimal covering set with zero overlap and zero extra addresses.
Can I expand multiple CIDR blocks at once?
Yes. Switch to CIDR List → IP Ranges and paste one CIDR per line to view every block’s start IP, end IP, and address count.
