myip.ph › IP & Network

IP range ⇄ CIDR

Enter a range like 10.0.0.0-10.0.3.255 or a CIDR like 192.168.1.0/28.

How to read the result

  • A range that does not line up on a power-of-two boundary needs several CIDR blocks; the tool lists the smallest set.
  • The address count lets you double-check the conversion.

Example

10.0.0.0–10.0.3.255 is exactly 10.0.0.0/22 (1,024 addresses). 10.0.0.5–10.0.0.10 needs four blocks: 10.0.0.5/32, 10.0.0.6/31, 10.0.0.8/31 and 10.0.0.10/32.

FAQ

Why convert ranges to CIDR?

Firewalls, cloud security groups and router rules usually accept CIDR blocks, not start–end ranges.

Related tools