Range to CIDR
A simple IPv4 network tool
IPv4 network utility

Range to CIDR

Convert an IPv4 range exactly, or find the smallest CIDR network containing a list of addresses.

Enter IP addresses

Convert a range or get a recommendation from a list.

Enter valid IPv4 addresses (0–255 in each octet).

CIDR result

Your matching network blocks will appear here.

Ready when you areEnter a range to see its CIDR blocks.
A range can span multiple networks. The result uses the fewest CIDR blocks needed to cover every address without including extras.
Precise recommendationsExact range coverage or the best-fit subnet for a list.
Any range sizeFrom a single IP to the full IPv4 space.
Quick to copyCopy one block or the complete result.