Skip to main content
IP Range CalculatorPRO
Subnet Math & Set OperationsInstant Client-Side Tool

CIDR Overlap Checker

Detect overlapping network prefixes.

CIDR Overlap Checker: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

Key Capabilities

  • •100% Client-Side: Zero telemetry or server latency.
  • •RFC Compliant: Exact 32-bit and 128-bit integer precision.
  • •Quick Copy: Instant access to CIDR, mask, and range bounds.
  • •Cross-Platform: Works on desktop, tablet, and mobile browsers.

How CIDR Overlap Checker Works?

This tool works by comparing 2 or more CIDR prefixes pair by pair and classifying each pair as identical, nested, or disjoint. CIDR blocks never partly overlap.

  1. Paste the prefixes

    Enter a list such as 10.0.0.0/16, 10.0.128.0/17, and 10.1.0.0/16.

  2. Take the shorter prefix

    For each pair, the checker masks both networks with the shorter prefix length.

  3. Compare the masked values

    Equal values mean one block contains the other. Different values mean the blocks are disjoint.

  4. List the conflicts

    The checker lists every overlapping pair with its relationship.

CIDR Overlap Checker Formula

The formula is Overlap = (N_A AND Mask(min(p_A, p_B))) = (N_B AND Mask(min(p_A, p_B))).

Overlap test

mask both with min(p_A, p_B) and compare

Equal → overlap.

Nesting rule

overlap ⇒ the shorter prefix contains the longer one

CIDR blocks are either nested or disjoint.

Pairs checked

n × (n − 1) ÷ 2

10 prefixes → 45 pairs.

Worked example: 10.0.0.0/16 vs 10.0.128.0/17

min prefix = 16 → mask 255.255.0.0
10.0.0.0   AND mask = 10.0.0.0
10.0.128.0 AND mask = 10.0.0.0
Equal → overlap, /16 contains /17

CIDR Overlap Checker Conversion Table

The table classifies 9 pairs of CIDR prefixes.

Prefix APrefix BRelationshipOverlap
10.0.0.0/1610.0.128.0/17A contains BYes
10.0.0.0/1610.1.0.0/16No overlapNo
172.16.0.0/12172.31.0.0/16A contains BYes
192.168.0.0/24192.168.0.0/24IdenticalYes
192.168.1.0/25192.168.1.0/24B contains AYes
10.0.0.0/8100.64.0.0/10No overlapNo
192.168.0.0/22192.168.4.0/22No overlapNo
172.20.0.0/14172.22.10.0/24A contains BYes
0.0.0.0/010.0.0.0/8A contains BYes

What is CIDR Overlap Checker?

The CIDR Overlap Checker is a tool that finds overlapping prefixes in a list of CIDR blocks and shows which block contains which.

CIDR blocks follow a strict property: 2 prefixes either do not overlap at all, or 1 contains the other completely. Partial overlap between 2 prefixes is impossible. The checker uses that property to give a precise answer: identical, A contains B, B contains A, or no overlap.

Overlaps among routed prefixes, VPC CIDRs, or firewall objects create ambiguous paths and duplicate rules. Spotting them early prevents routing conflicts.

What are the uses of CIDR Overlap Checker?

There are 4 main uses of the CIDR Overlap Checker, including VPC peering, route table hygiene, and firewall cleanup.

  • Planning VPC peering

    AWS and Azure refuse peering between networks with overlapping CIDRs.

  • Cleaning route tables

    Nested static routes reveal redundant entries.

  • Removing duplicate firewall objects

    Objects contained in broader objects are candidates for removal.

  • Checking acquisition networks

    Networks of an acquired company are checked for overlap before integration.