CIDR overlap checker
Paste IPv4 and IPv6 blocks to see which overlap, which sit inside which, and which blocks hold a given address. Runs in your browser.
Runs in your browser. Nothing is uploaded.
Notes
Two CIDR blocks can never overlap partially. A block with prefix length p starts on a multiple of its own size and covers exactly that many consecutive addresses, and two ranges that are both aligned powers of two are either apart or one holds the other. So every pair is one of four things: disjoint, identical, the first inside the second, or the second inside the first. 10.0.0.0/8 holds 10.1.0.0/16, and the addresses they share are all 65,536 of the smaller block. 10.0.0.0/24 and 10.0.1.0/24 touch at a boundary and share nothing, because the first ends at 10.0.0.255.
The check does not compare every pair. The blocks are sorted by start address and then by prefix length, and one pass keeps a stack of the blocks still open. Because blocks cannot straddle, everything on the stack when a new block arrives holds it or equals it, so the stack depth is the number of earlier blocks it overlaps, and the depths add up to the exact pair count. Identical blocks share a stack entry, so n copies of one block are n(n-1)/2 identical pairs. The pair list is capped at 200 rows, but the counts are never capped.
Whether an overlap is a mistake depends on what the list is. In an address plan, a set of VPCs, VLAN subnets or DHCP scopes, any overlap is a conflict, and a cloud provider will refuse to peer two networks whose blocks overlap. In a routing table or a firewall rule set, nesting is normal: the longest matching prefix wins, so a 10.1.0.0/16 route inside a 10.0.0.0/8 route is how one network gets sent somewhere else. The lookup below the result applies that rule and lists the blocks that hold an address from most specific to least. If one block has the longest prefix it is the one a longest prefix match picks. If several share that length, because a block is listed twice or spelled two ways, they are reported as tied: the prefix cannot choose between them, and something else, such as metric or administrative distance, does.
A block written with bits set after its prefix, such as 10.1.2.3/8, is ambiguous. Python's ipaddress module refuses it unless it is told strict=False, and the Linux kernel refuses a route written that way. This tool reads it as the network that contains the address, here 10.0.0.0/8, and says so in a note on that line, because a typo in the prefix length is the usual cause and the reader should see what was compared.
IPv4 and IPv6 are separate address spaces and are never compared with each other. That includes IPv4-mapped IPv6: ::ffff:10.0.0.0/104 is an IPv6 block and is not checked against 10.0.0.0/8, even though a dual-stack socket treats the two as the same hosts. Input is read as strictly as the rest of the site's address tools: leading zeros, hexadecimal octets, bare integers and shorthand like 127.1 are refused with a reason rather than guessed at, since parsers disagree about them. A netmask after the slash is refused too; write the prefix length, /8 rather than /255.0.0.0.