Skip to content
ToolInstant

IP Range to CIDR

Local

Convert IPv4 ranges like 10.0.0.5 - 10.0.1.20 into the fewest CIDR blocks that cover them exactly. Handy for firewall rules, allow-lists and security groups.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Developer tools · Free · No upload · No sign-up

How to use the ip range to cidr for free

  1. 1Type one range per line as start - end.
  2. 2See the smallest set of CIDR blocks for each range.
  3. 3Copy the CIDR list into your firewall or config.

Also useful for: ip range to cidr, convert ip range to cidr, range to subnet, cidr from ip range, firewall cidr list.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this IP range to CIDR converter free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Is the result exact?+

Yes. The blocks cover every address in the range and nothing outside it, using the fewest blocks possible, the same as Python's ipaddress.summarize_address_range.