Choose your tool

NETWORK TOOL

IPv4 Range to CIDR Blocks

Use this online ipv4 range to cidr blocks with pasted values. Returns the smallest exact CIDR cover of the supplied inclusive address interval.

â—‡ Browser only
0 lines · 0 characters
Ready when you are
Your results will appear here.
Copy or download your result below.
LESS BUSYWORK, MORE DONE

Three steps. That’s it.

A useful toolkit for text, data, images and calculations.

  1. 01

    Add your input

    Choose a tool, enter values or select a file.

  2. 02

    Make it yours

    Adjust the options and run the action.

  3. 03

    Take the result

    Copy the result or download its file.

ip range to cidr online online

Use ipv4 range to cidr blocks online to work with your own network values. Returns the smallest exact CIDR cover of the supplied inclusive address interval.

How to use it

Select Try example, replace the JSON values using the same keys, and select Run tool. Review the output and scope notes before copying or downloading the result.

Options and example settings

OptionChoices / valueExample default
JSON key: startUse the same JSON value type as the example."192.0.2.10"
JSON key: endUse the same JSON value type as the example."192.0.2.20"

Calculation method

Greedy aligned power-of-two partition of an inclusive IPv4 range

Worked examples

Worked case for ipv4 range to cidr blocks. Returns the smallest exact CIDR cover of the supplied inclusive address interval.

IPv4 Range to CIDR Blocks — example with explicit inputs

Settings: No extra options

Input:

{
  "start": "192.0.2.10",
  "end": "192.0.2.20"
}

Expected result for the example input and options:

Output:

{
  "cidrs": [
    "192.0.2.10/31",
    "192.0.2.12/30",
    "192.0.2.16/30",
    "192.0.2.20/32"
  ]
}

Limitations and common mistakes

  • Returns the smallest exact CIDR cover of the supplied inclusive address interval.
  • Keep JSON property names and value types consistent with the example. Network tools do not perform live scans or remote lookups.

Frequently asked questions

How can I use ip range to cidr online online?

Select Try example, replace the JSON values using the same keys, and select Run tool. Review the output and scope notes before copying or downloading the result.

Which model does IPv4 Range to CIDR Blocks use?

Greedy aligned power-of-two partition of an inclusive IPv4 range. Returns the smallest exact CIDR cover of the supplied inclusive address interval.

Technical references

Where is my input processed?

The bundled tool processes input in your browser. It does not upload tool input to a conversion service. Other site plugins, analytics, advertising and browser extensions may have separate behavior.

Useful next tools

Explore other tools

Open a tool below, use the search, or choose a category to browse its full collection.