Neatbo.

IP range to CIDR

Turn an inclusive IPv4 address range into the smallest exact list of CIDR blocks.

Browser-local processingInputIPv4 rangeOutputCIDR
  1. 1Add input
  2. 2Review and run
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run

Check the IPv4 range

Enter two IPv4 addresses separated by a hyphen, whitespace, or a pasted spreadsheet tab. Both endpoints are included.

Enter the first and last IPv4 addresses to preview the exact coverage.

This is local address arithmetic. It does not identify an address owner or contact a network.

0 characters · 0 bytes
Preparing the tool…

Before you start

Enter the first and last IPv4 addresses to get the smallest exact CIDR list. Check each block and copy one or the complete newline-separated list for network configuration.

How to use this tool

  1. Paste two IPv4 addresses separated by a hyphen, space, tab, or line break.
  2. Check the inclusive endpoints, address count and CIDR block count before converting.
  3. Inspect each block and its address range, then copy one block or download the complete list.

Supported inputs and limits

One inclusive IPv4 range per run. The output may need several CIDR blocks; a single broader block would include extra addresses.

This tool does not look up address ownership or validate a firewall or cloud provider policy. Some destinations reject prefixes such as /0.

Calculations stay in this browser; no DNS, geolocation or network scan.

Worked example

Example input

192.0.2.5 - 192.0.2.13
Example options
{}

Example output

192.0.2.5/32
192.0.2.6/31
192.0.2.8/30
192.0.2.12/31

When something does not work

Check both IPv4 addresses, their order, and that only one range was entered.

Frequently asked questions

Can every range be represented by one CIDR?

No. Arbitrary endpoints often require several blocks to avoid including addresses outside the range. This tool returns the smallest exact list.

Are the first and last addresses included?

Yes. Both endpoints are included and every generated block stays inside that range.

Can I paste two spreadsheet cells?

Yes. A tab or line break between two IPv4 addresses is accepted. Only one range is processed at a time.

Can I paste this list directly into any firewall?

Check the destination syntax and prefix restrictions first. For example, some services do not accept /0 in an IP allowlist.

Is my input sent to a server?

No. Address arithmetic runs in your browser; this tool does not query or scan the network.

Documentation & further reading

Related tools