Text and developer tools
IPv4 and IPv6 CIDR overlap checker
Compare two IPv4 or IPv6 network prefixes for overlap, containment, equality or adjacency with exact address ranges and counts.
Runs in your browser. Inputs stay on this page and are not uploaded or added to the URL.
Your result
How to use this tool
Enter two address/prefix pairs. The checker normalizes host bits to network boundaries, then shows whether the ranges are equal, one contains the other, or they are disjoint. Adjacent ranges touch at consecutive addresses but do not overlap. For aligned CIDR prefixes, any intersection is the smaller contained network.
Both IPv4 and IPv6 support their full prefix ranges, including /0 and single-address /32 or /128. IPv6 accepts hexadecimal groups, one :: compression and an optional dotted IPv4 tail. Display uses lowercase, the longest zero run and the leftmost run when tied; a single zero group is not compressed. IPv4-mapped addresses use ::ffff:dotted-decimal notation.
IPv4 and IPv6 remain separate address families. Comparing an IPv4 block with an IPv4-mapped IPv6 block reports different families rather than inventing a mapping. Counts include all addresses in each prefix and do not represent usable hosts, allocated addresses or reachable services. All arithmetic stays in your browser; no network probes are made.
Worked example
2001:db8::1/32 normalizes to 2001:db8::/32 and contains 2001:db8:1234::/48. For IPv4, 192.0.2.0/25 and 192.0.2.128/25 are adjacent, with zero shared addresses.
References and method
- RFC 4291: IPv6 address and prefix notation
- RFC 5952: canonical IPv6 text representation
- RFC 4632: IPv4 CIDR
Contifield is an independent utility site. Reference publishers do not endorse this tool.
Related tools
Punycode and IDN domain converter
Convert an internationalized domain between Unicode and ASCII Punycode with browser URL processing and round-trip validation.
Unicode code point inspector
Inspect Unicode code points, UTF-16 units, UTF-8 bytes and all four normalization forms: NFC, NFD, NFKC and NFKD.
IPv4 CIDR and subnet calculator
Calculate an IPv4 network, subnet mask, wildcard, address range and host count with explicit /31 and /32 handling.