CIDR / Subnet Checker · Networking
Is this IP in that CIDR range?
Paste an IP and the CIDRs to check it against — or a whole list. You get an instant in-range verdict, every overlap and containment, and the minimal merged set — all in your browser.
CIDR / Subnet Checker playground
One IP or CIDR per line. A bare IP (no /prefix) is checked against every CIDR in the list. Blank lines and # comments are ignored.
Results update as you type — press Enter to run now.
Paste an IP plus the CIDRs to check it against — or any list of IPs/CIDRs — to see an in-range verdict, overlaps, and the merged minimal set here.
The Gap
Sprawling rules hide overlaps and dead entries.
Security groups, route tables and allow-lists accumulate CIDRs over time. Soon two entries overlap, one is fully inside another, or four adjacent blocks could have been a single line. Eyeballing that across dozens of ranges is exactly where mistakes hide — and finding overlapping CIDR ranges in a large list by hand is error-prone even for experienced engineers.
This checker reads the whole list at once: it flags every overlap and containment, and collapses the set into the fewest CIDRs that cover the same addresses. Cleaner rules, fewer surprises — and a reliable pre-flight check before AWS VPC peering or any setup where overlapping ranges cause hard failures. Runs entirely in the browser, with nothing to install. And when all you need is a yes/no — is this IP covered by that range? — you get the verdict first, before any list math.
Need to inspect a single block? Open the Subnet Calculator.
The Pipeline
How it works.
Four deterministic steps run as you type — all inside your browser tab, with exact BigInt arithmetic.
-
Parse each line.
Every line is read as an IP or CIDR and normalised to its network; blanks and # comments are skipped.
-
Compare pairwise.
Each pair in the same family is checked for equality, containment or overlap — and every bare IP is checked against every range.
-
Merge the ranges.
Entries become numeric intervals, sorted and merged wherever they touch or overlap.
-
Re-split to CIDRs.
Each merged interval is decomposed into the fewest aligned CIDR blocks that cover it exactly.
By Example
Aggregate, and catch overlaps.
Two of the most common jobs: collapsing contiguous blocks, and surfacing entries that overlap or duplicate each other.
Aggregation
Adjacent blocks collapse to the minimal covering set.
# four adjacent /24s
192.168.0.0/24
192.168.1.0/24 → 192.168.0.0/22
192.168.2.0/24
192.168.3.0/24 Overlap & containment
Redundant and enclosing entries are labelled.
10.0.0.0/16
10.0.5.0/24 → 10.0.0.0/16 contains 10.0.5.0/24
10.0.5.0/24 → 10.0.5.0/24 is the same block as 10.0.5.0/24 Next Step
Inspect one of the blocks in detail.
When an entry looks off, drop it into the Subnet Calculator to see its network, broadcast, mask and full host range for IPv4 or IPv6 — the per-block companion to checking a whole list.
in: 192.168.0.0/24 … /23
out: 192.168.0.0/22
note: 1 block covers all four FAQ
Questions, answered.
Tap a question to expand the answer.
What does the CIDR / Subnet Checker do?
Paste a list of IPs or CIDRs — one per line — and it does four things: answers whether a bare IP falls inside any CIDR in the list, aggregates the entries into the minimal set of CIDR blocks that exactly covers the same addresses, reports every overlap and containment between them, and shows a parsed, normalised breakdown of each line. Everything runs in your browser.
How do I check if an IP address is in a CIDR range?
Type the IP on one line and the CIDR range — or several — on the lines below. The verdict card answers immediately: 10.0.0.5 is inside 10.0.0.0/24, because that block spans 10.0.0.0 through 10.0.0.255. A bare IP (no /prefix) is compared against every CIDR in the list, and every range that contains it is named, most specific first. If nothing contains it, the tool says so explicitly. Coming from the IP Address Converter? The "Check against CIDRs" link pre-fills the IP for you.
Does my list ever leave my browser?
No. Parsing, comparison and aggregation all run 100% client-side in your tab — no server, no account, no logging. You can safely paste internal allow-lists and route tables.
What does “aggregation” mean here?
Aggregation (also called summarisation or supernetting) replaces several adjacent or overlapping blocks with the fewest CIDRs that cover exactly the same addresses — for example 192.168.0.0/24 through 192.168.3.0/24 collapses to a single 192.168.0.0/22. It shortens firewall rules and route tables without changing what they match.
What is the difference between overlap and containment?
Containment means one block sits entirely inside another (10.0.5.0/24 is inside 10.0.0.0/16). A plain overlap means two blocks share some addresses without one fully enclosing the other. The checker labels each relationship — equal, contains, inside, or overlaps — so you can spot redundant or conflicting entries.
Does it handle IPv6 and mixed lists?
Yes. IPv4 and IPv6 entries are parsed together; comparison and aggregation are done within each family (a v4 block and a v6 block never overlap), and the minimal covering set is reported per family using full 128-bit precision for IPv6.
What input does it accept?
One IP or CIDR per line. A bare address is treated as a /32 (or /128). Blank lines and lines starting with # are ignored, so you can paste a commented config block directly. Anything that is not a valid IP or CIDR is flagged rather than silently dropped.
How do I check if two subnets overlap?
Each CIDR is converted to its first and last address as a numeric range. Two CIDRs overlap when their ranges share any address — even a single one. Paste your list into the tool and every overlapping or contained pair is labelled automatically, distinguishing equal blocks, one-inside-the-other (containment), and partial overlaps.
How do I find the minimal covering set of a list of CIDRs?
Paste the full list and the tool sorts the entries, merges adjacent and overlapping ranges into contiguous numeric intervals, then re-splits each interval into the fewest aligned CIDR blocks that cover it exactly. The result is the smallest possible set of CIDRs that still covers every address in the original list — useful for shrinking routing tables, firewall rules, and BGP prefix lists.
How do I check for overlapping CIDRs before AWS VPC peering or a VPN setup?
AWS rejects VPC peering, Transit Gateway attachments, and VPN connections when any CIDR ranges overlap. Paste all VPC and subnet CIDRs into the checker before deploying: it flags every overlapping or contained pair so you can re-plan address space ahead of time. Because everything runs in the browser, no internal IP data is uploaded.
What is the difference between subnetting and supernetting (route summarization)?
Subnetting splits one block into smaller subnets by lengthening the prefix — for example /24 into eight /27s. Supernetting, also called CIDR aggregation or route summarization, is the reverse: it merges multiple contiguous blocks into one larger block by shortening the prefix — for example eight /27s back into a single /24. Aggregation reduces routing-table size and firewall-rule count while preserving full address coverage.
New to this? Read our guide on Networking for DevOps Engineers.
More free, private DevOps tools.
The CIDR / Subnet Checker is one tool in OpsCanopy — a growing canopy of browser-based validators, converters and testers that never touch a server.
More in Networking
New to AWS? Read the AWS guide →
29 free tools, every one offline-capable — opscanopy.com works with no signup and nothing uploaded.
More networking: the Subnet Calculator, the Subnet Splitter for the inverse job of carving a block into smaller subnets, and the IP Address Converter, or browse the full tools directory.
Provided as-is for convenience; always confirm critical network changes against your own authority. OpsCanopy is free and open.