Skip to content
TabKiwiTabKiwi

IP Range to CIDR

Convert a start and end IPv4 address into the fewest CIDR blocks that cover exactly that range.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Firewalls, cloud security groups and allow-lists usually want CIDR notation, but providers often publish plain address ranges. Enter the first and last address and you get the smallest set of CIDR blocks whose union is exactly that range, with no extra addresses included. You can also paste a range such as 10.0.0.5 - 10.0.0.70 into the first box. The conversion happens locally.

How to use IP Range to CIDR

  1. Type the first address of the range.
  2. Type the last address of the range.
  3. Read the resulting CIDR blocks and the total address count.
  4. Copy the list or download it as a text file.

Frequently asked questions

Why do I get several blocks instead of one?

A single CIDR block must start on a boundary that matches its size. Ranges that do not line up with those boundaries need several blocks to be covered exactly.

Does it include addresses outside my range?

No. The blocks cover exactly the range you typed, from the first address to the last, inclusive.

More Developer tools

View all 91 →