Skip to content
SubnettingCalculator
IPv4 Detecting…
IPv6 Detecting…

Subnet Overlap Checker – Find Overlapping IPv4 Subnets

Use this free subnet overlap checker to find overlapping and duplicate IPv4 subnets in a list. Paste your subnets in CIDR notation, one per line, and see which ones clash, how they overlap and which IP range they share. Useful before you add a route, a VPN, a VPC or a new VLAN.

CIDR Overlap Checker

Enter the subnets you want to compare, one per line.

Subnets to Check

Example Input:
10.0.0.0/16 10.0.5.0/24 10.0.5.128/25 172.16.0.0/24 192.168.1.0/24 192.168.1.0/24

What is a subnet overlap?

Two subnets overlap when they share at least one IP address. In CIDR terms this means one subnet sits completely inside another, for example 10.0.5.0/24 inside 10.0.0.0/16, or the same subnet appears twice.

Overlaps cause real trouble. A router cannot tell which network an address belongs to, two devices can end up with the same IP, and VPN tunnels, VPC peering and site-to-site links fail when both sides use the same address space. It is much cheaper to find an overlap on paper than after the link is built.

How to use the Subnet Overlap Checker

1Enter your subnets

Type or paste the subnets into Enter Subnets, one per line, like 192.168.0.0/24. You can also write the mask in full, like 192.168.0.0/255.255.255.0. Click Copy Example if you want a sample to paste in and try.

2Click Check Overlaps

The result appears below the form (pressing Enter in the box adds a new line, so use the button). From then on it follows your changes, so you can add or remove a line and watch the result update. If a line is not valid, a red message names it.

3Read the result

A green No overlaps found or a red Overlaps found tag tells you the answer at a glance. Overlapping Subnets lists each clashing pair and the range they share. Subnet Status lists every subnet you entered, and says whether it is clear or how many others it overlaps with.

4Choose the columns

Tick or untick boxes in Show Columns to choose what you see. The first four boxes are for the overlap table and the last three are for the status table. On a phone or tablet that row slides sideways.

5Copy, download or start again

Copy puts both tables on your clipboard and Download saves them as a CSV file. Both use only the columns you ticked. Clear All empties the box and hides the result.

Common slip-ups

  • "Enter at least two subnets". One subnet has nothing to be compared with.
  • A line is marked as not valid. Each subnet needs a prefix, such as /24. An address with no prefix is not enough.
  • A subnet shows as overlapping with a bigger one. That is correct. A /24 inside a /16 shares all of its addresses with it.

How overlaps are found

Two address ranges overlap when each one starts before the other one ends:

overlap = start of A <= end of B AND start of B <= end of A

For CIDR subnets there is a shortcut. A subnet always starts on a boundary that fits its size, so two subnets either do not touch, or one fits entirely inside the other. There is no partial overlap. The checker sorts all subnets by start address and walks down the list once. At each step it knows which bigger subnets still contain the current one, and those are the overlaps. This is fast even for thousands of subnets.

Example

Take these five subnets:

SubnetRangeTotal IPsStatus
10.0.0.0/1610.0.0.0 – 10.0.255.25565,536Overlaps with 1 subnet
10.0.5.0/2410.0.5.0 – 10.0.5.255256Overlaps with 1 subnet
172.16.0.0/24172.16.0.0 – 172.16.0.255256No overlap
192.168.1.0/24192.168.1.0 – 192.168.1.255256Overlaps with 1 subnet
192.168.1.128/25192.168.1.128 – 192.168.1.255128Overlaps with 1 subnet

There are 2 overlapping pairs:

Subnet ASubnet BRelationshipOverlap StartsOverlap EndsOverlapping IPs
10.0.0.0/1610.0.5.0/24A contains B10.0.5.010.0.5.255256
192.168.1.0/24192.168.1.128/25A contains B192.168.1.128192.168.1.255128

The overlapping range is always the whole of the smaller subnet, because it sits fully inside the bigger one.

When to use it

Run it before you create a new VPC or VNet, set up a VPN or peering link, add a VLAN, merge two company networks, or add a route to a routing table. It also helps you audit an existing address plan or a spreadsheet of subnets, and catch duplicates that crept in over the years.

To lay out new subnets without clashes, use the VLSM Calculator or the FLSM Calculator. To join several networks into one summary route, use the Supernetting Calculator.

Frequently asked questions

What is a subnet overlap?

Two subnets overlap when they share at least one IP address. With CIDR subnets this happens in two ways: one subnet sits fully inside a bigger one, such as 10.0.5.0/24 inside 10.0.0.0/16, or the two are exactly the same.

Why are overlapping subnets a problem?

Routers and firewalls cannot tell which network an address belongs to. This can send traffic to the wrong place, cause duplicate IP addresses, and break VPN tunnels, peering links and cloud networks that must not share address space.

Can two subnets overlap only partly?

Not with CIDR. Subnets always start on a boundary that matches their size, so two of them either do not touch at all, or one contains the other. A "partial" overlap, where each has some addresses the other does not, cannot happen.

How does the checker find overlaps?

It sorts the subnets by start address and walks through them once, keeping track of the bigger subnets that contain the current one. This is fast enough to check 2,000 subnets in one go.

What do Subnet A and Subnet B mean in the result?

Subnet A is the bigger subnet, or the first one you entered if both are identical. Subnet B is the one that sits inside it. The overlapping range is the whole of Subnet B.

What if an entry has host bits set, like 192.168.1.77/24?

The checker uses the network address instead, so it is read as 192.168.1.0/24. The result says how many entries were changed this way.

How do I fix an overlap?

Decide which subnet should keep the addresses, then move the other one to a free range, or make it smaller so that it no longer touches the first. The VLSM Calculator can help you lay out new subnets without clashes.

Can I enter subnets with a full mask?

Yes. 192.168.0.0/255.255.255.0 works as well as 192.168.0.0/24. Put one subnet on each line, or separate them with commas, semicolons or spaces.

Does it check IPv6?

Not yet. This checker is for IPv4 subnets.

Is anything I enter sent to your server?

No. The check runs in your browser, so your network plan stays on your device.