Skip to main content
>_devtools

IP Range <-> CIDR Converter

Convert IPv4 or IPv6 address ranges to minimal CIDR blocks, or expand CIDR blocks into their first and last addresses.

What this does

Convert an IPv4 or IPv6 start-end range to its minimal CIDR cover, or convert CIDR blocks to first and last addresses. Choose the direction and paste one entry per line.

Example

Range: 192.0.2.1 - 192.0.2.6
CIDR cover: 192.0.2.1/32, 192.0.2.2/31, 192.0.2.4/31, 192.0.2.6/32

Limits and behavior

  • Ranges must use addresses from the same family and have an ordered start and end.
  • Input is limited to 5,000 entries.