All tools · 🌐 Network Tools

🔁 IP Range to CIDR

Cloud security groups and firewall rules often accept CIDR but not arbitrary ranges. This tool takes a start and end IPv4, and returns the minimum CIDR blocks that exactly cover everything in between — no more, no less.

Loading tool…

Examples

Even range
Input10.0.0.0 - 10.0.0.255
Output10.0.0.0/24
Odd boundaries
Input10.0.0.5 - 10.0.0.20
Output10.0.0.5/32, 10.0.0.6/31, 10.0.0.8/29, 10.0.0.16/30, 10.0.0.20/32

Frequently asked questions

Why so many blocks for an odd range?

CIDR blocks must align on power-of-2 boundaries. An uneven range needs multiple aligned blocks to cover it exactly.

About this calculator

IP Range to CIDR runs entirely in your browser using standard formulas. No data is sent to any server. We don't share your inputs with lenders, brokers, or anyone else — there's no funnel and no follow-up email.

Related tools

← All 35 calculators

Why this tool

vs typical free network-tools sites

NetToolsetTypical free site
PriceFreeFree
Signup requiredNoOften (for advanced features)
Ads inside the toolNoYes (banner + interstitial)
Logs your IP / queriesNoYes (often resold)
Data sent to a serverMath runs in browser; lookups hit Cloudflare DoH directlyYes (all goes through their server)
Open sourceYesNo
Bookmarkable URL per toolYesMixed
MultilingualEN / ES / PT / FR / DEUsually EN only
Loads in under 1sYes (static)Often slow (ad tracking)