Current toolIPv4 range to CIDR
Network · NET-02Submit an issue

IPv4 range to CIDR

Convert a start and end IPv4 address into the smallest set of CIDR blocks.

IPv4 range · Minimal CIDR blocks
Input
Output
Usage guide and examples

Work with configuration and network data

Enter starting and ending IPv4 addresses to cover the inclusive range with CIDR blocks. 192.168.1.0 through 192.168.1.255 yields /24. Start must not exceed end; unaligned ranges may require several blocks.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

192.168.1.0
192.168.1.255

What to check in the result

192.168.1.0/24