Skip to content
NSNormandin SystemsTHE EVERYDAY TOOLBOXMain site
⌁

Network / YOUR EVERYDAY TOOLBOX

IPv4/6 Range to CIDR(s) Calculator

Calculate CIDR(s) from an IP Range (IPv4/6)

✓ Free to use✓ No account neededHow to use this tool ↓
YOUR WORKSPACESee an example ↗

Opening your tool…

Runs in your browser. Check important results and keep a copy of your original files.

THE PRACTICAL GUIDE · NORMANDIN SYSTEMS

Get more from IPv4/6 Range to CIDR(s) Calculator

IPv4/6 Range to CIDR(s) Calculator: Calculate CIDR(s) from an IP Range (IPv4/6). An exact range can often be represented by one or several CIDR blocks, depending on its alignment and size. IP calculations describe address space; they do not tell you whether a host is online or whether a firewall permits traffic. Prefix lengths divide an address into network and host portions, and a one-bit prefix change can substantially change the number of included addresses. Confirm whether you are working with IPv4 or IPv6 and use the same family throughout a calculation. For network planning, record both the human-readable notation and the exact boundaries. This helps catch accidental overlap, oversized allowlists, and assumptions about which addresses are usable.

Guide updated October 13, 2026

How to use this tool

  1. Begin with a representative input. For a practical test, use: 192.0.2.0 through 192.0.2.255. Replace demonstration values only after you understand the output.
  2. Enter the address, range, or prefix in the syntax requested by the tool, using the correct IPv4 or IPv6 address family.
  3. Inspect the network boundaries and the size of the resulting address space, especially when a calculation broadens or subdivides a range.
  4. Compare the result with neighboring subnets and your intended allocation before applying it to a router, firewall, or configuration file.

SEE IT IN PRACTICE

A worked example

EXAMPLE INPUT
192.0.2.0 through 192.0.2.255
RESULT / WHAT TO EXPECT
192.0.2.0/24

Use both endpoints as inclusive boundaries when checking the represented address count.

Alignment determines how ranges become prefixes

CIDR blocks have power-of-two sizes and aligned starting boundaries. A range of the right size can still require multiple blocks if its start is not aligned. For example, a small interval inside a /24 does not automatically become one equally small prefix. Compare the resulting first and last addresses, not just the number of blocks shown.

Containment, overlap, and subtraction answer different questions

Containment asks whether all of one input lies inside another. Overlap asks whether they share any addresses. Subtraction removes an excluded set and can split one range into several remnants. These distinctions matter in firewall and allocation work: a partly overlapping range is not fully authorized by a containing policy. Keep original inputs with the calculation and check boundary addresses explicitly.

When this tool is useful

  • Convert an address interval
  • Prepare exact firewall ranges
  • Summarize a network allocation

Tips for a better result

  • Do not replace several exact blocks with one broader supernet unless the additional addresses are intentional.
  • An address being mathematically inside a subnet does not prove that the address is assigned, reachable, or authorized for access.
  • Keep prefix lengths visible in documentation; an address without its prefix is insufficient to describe a subnet allocation.

Frequently asked questions

What is the difference between an exact CIDR decomposition and a covering subnet?

An exact decomposition uses as many aligned blocks as necessary to represent only the requested addresses. A single covering subnet may be larger and include addresses outside the original range.

Why does the prefix length matter?

The prefix length controls how many bits identify the network. Increasing the prefix length makes the block smaller; decreasing it makes the block larger and can include addresses beyond your intended scope.

Can I paste the result directly into a firewall?

First verify the destination’s accepted syntax and the policy’s intended scope. A mathematically correct range can still grant too much access, overlap another rule, or behave differently because of rule ordering.

What happens to the information I enter?

The utility processes your input in this browser. Some tools retain field values in browser storage or the URL; avoid entering secrets in shareable fields. Page and asset requests still go to the hosting provider. Read the privacy and offline-use notes for details.