IPv4 range to CIDR
Turn an inclusive IPv4 address range into the smallest exact set of CIDR blocks.
How it works & useful details
How it works & limits
Enter the first and last IPv4 addresses, inclusive. The result is the smallest set of aligned CIDR blocks covering exactly that range. No address outside your range is included.
Both addresses must be strict dotted decimal. The full IPv4 space is supported; a range produces at most 62 blocks. Select a block to see its boundaries. Saved text has one CIDR per line.
Your working space
Explore the live view, then save copyable text and a downloadable file. Everything is calculated locally. Inputs are not stored; refreshing clears them.
These tools inspect address notation and ranges. They do not contact addresses, check availability or establish connectivity.
