Network · Address planning

CIDR overlap checker.

Compare two IPv4 or IPv6 CIDR blocks. See whether they collide, which contains the other, and the exact range they share.

Local-only: these may be private network ranges. Inputs are calculated in your browser and never sent to a server.

How to check whether two CIDR blocks overlap

  1. Enter the first CIDR block, for example 10.0.0.0/16.
  2. Enter the second block in the same address family, either both IPv4 or both IPv6.
  3. Press Check overlap.
  4. Read whether the blocks are disjoint, identical or nested, and see the exact shared range.

How overlap works

A CIDR prefix fixes the leading bits of an address. Properly aligned blocks in the same family are always one of three things: completely separate, identical, or one entirely inside the other; they cannot overlap just at an edge. The checker zeroes the host bits to find each block's first address, sets them to find the last, and compares the two ranges, so even if you type a host address such as 10.0.0.5/24 it is normalised to its network.

Overlaps matter whenever address space must stay unique: planning virtual networks and VPN peering, writing firewall or routing rules, merging data centres and cloud accounts, or allocating subnets to teams. Finding a collision on paper is far cheaper than discovering it when two networks refuse to connect.

Runs on your device

The checker runs in your browser, inside an isolated frame on this page that has no network access. Your file is read and written back by your own device, so it is not uploaded to TNAADO or anyone else, and nothing is stored. The advertising on this page sits outside the frame and cannot see what you choose. Internal address plans are sensitive, so they are not uploaded.

How CIDR overlap works

A CIDR prefix fixes the most significant bits of an address. RFC 4632 defines IPv4 prefix lengths from /0 through /32; IPv6 uses the same prefix model over 128-bit addresses. This checker zeroes host bits to find each network's first address, sets them to find its last address, then compares the two closed ranges.

Two properly aligned CIDR blocks in the same address family are either disjoint, identical, or one contains the other. They cannot overlap only at one edge. IPv4 and IPv6 do not overlap because they are separate address spaces.

Specifications: RFC 4632 section 3.1 for IPv4 CIDR and RFC 4291 sections 2 and 2.3 for IPv6 addresses and prefixes.

Worked examples

Nested (the default inputs). 10.0.0.0/8 spans 10.0.0.0 to 10.255.255.255, which is 16,777,216 addresses. 10.24.0.0/16 spans 10.24.0.0 to 10.24.255.255, which is 65,536 addresses. The second block starts and ends inside the first, so the tool reports an overlap, says the first contains the second, and lists the shared range as the whole 65,536-address /16.

Adjacent, not overlapping. 192.168.0.0/24 ends at 192.168.0.255 and 192.168.1.0/24 starts at 192.168.1.0. They touch end to end but share no address, so the result is no overlap. A near miss that catches people out: 172.16.0.0/12 ends at 172.31.255.255, so 172.32.0.0/16 is outside it.

IPv6. 2001:db8::/32 and 2001:db8:abcd::/48 overlap because the /48 sits inside the /32. The shared range is the whole /48, which is 280 = 1,208,925,819,614,629,174,706,176 addresses.

Frequently asked questions

Can two CIDR blocks overlap only partly?

Not when both are valid, aligned blocks of the same family. Each block covers a power-of-two run of addresses that starts on a multiple of its size, so two blocks are either disjoint, identical, or one contains the other.

Do adjacent blocks count as overlapping?

No. 192.168.0.0/24 and 192.168.1.0/24 are neighbours with no address in common. They can be merged into 192.168.0.0/23, but they do not overlap.

What happens if I type host bits, such as 10.1.2.3/8?

The tool normalizes the block to its network address, 10.0.0.0/8, before comparing, and shows the normalized value in the result so you can see what was compared.

Why does overlap matter for VPNs and peered networks?

Two networks that use the same addresses cannot route to each other unambiguously. Most VPN and VPC-peering setups need non-overlapping ranges, so check your provider’s documentation and run both CIDRs through this tool before you connect them.

Can I compare an IPv4 block with an IPv6 block?

No. They are separate address spaces, so the tool asks for two blocks of the same family.

Sources

Last checked

Standards cited as published; the arithmetic and defaults are this tool’s own. Runs entirely in your browser. Nothing you type is sent or stored.

Planning check only

This compares mathematical address ranges. It does not inspect routes, firewall rules, VLANs, VPN configuration, cloud accounts, or live reachability.

Advertisement
Advertisement