IP Range to CIDR
Compute the minimal sorted set of CIDR blocks covering any start–end IPv4 range.
Minimal CIDR blocks (1)
192.168.1.0/24
Your input is processed locally in this browser tab.
How to use IP Range to CIDR
Enter the First IPv4 address and Last IPv4 address of any inclusive range.
Computes the smallest exact set of non-overlapping CIDR blocks covering that range.
Copy the generated CIDR list cleanly for firewall rules or routing tables.
Frequently asked questions
What happens if the range starts cleanly on a CIDR block boundary like .0 to .255?
It collapses directly into a single canonical block (e.g. 192.168.1.0/24).
What if First address is higher than Last address?
A clear validation error explains that first must be less than or equal to last.