ShowIP.net Public IP and request tools
Menu

Network tool

CIDR merge and overlap checker

Remove duplicate and contained networks, combine adjacent sibling networks, and find exactly where your input CIDRs overlap. The merged output covers the same addresses as your input.

Up to 128 IPv4 or IPv6 CIDRs and 8 KiB of text. Separate entries with newlines, spaces, or commas. IPv4 and IPv6 are processed separately.

Try adjacent and overlapping networks

Merged networks

3 input entries → 1 merged networks. 0 entries had host bits normalized to their network address.

192.0.2.0/24

1 overlapping input pairs

Numbers identify original input positions. Duplicates count as overlaps; adjacent networks do not. Each intersection is the narrower of the two CIDRs.

Overlapping CIDR input entries and their intersection
First entrySecond entryIntersection
1: 192.0.2.0/253: 192.0.2.64/26192.0.2.64/26

Merge without widening access

192.0.2.0/25 and 192.0.2.128/25 are siblings, so they merge into 192.0.2.0/24. Adding 192.0.2.64/26 changes nothing in that merged result: it is already covered, but is reported as overlapping the first input.

192.0.2.0/26 and 192.0.2.128/26 remain separate. Combining them into one larger CIDR would introduce addresses you did not supply. This tool never fills such gaps.

Use the result carefully

Merging is useful for address inventories and rules that all have the same action. A firewall may also depend on rule order, ports, protocols, or allow/deny actions. Those settings are not part of this calculation: do not combine rules with different meanings just because their address ranges overlap.

Host bits are normalized: 192.0.2.17/24 becomes 192.0.2.0/24. A single IPv4 address needs /32 and a single IPv6 address needs /128. IPv4-mapped IPv6 prefixes are rejected to avoid ambiguity; write those networks in IPv4 notation.

See the CIDR guide for prefix notation, or use range to CIDR for a start and end address. CIDR aggregation is described in RFC 4632. Inputs are submitted to ShowIP and included in your browser URL; see the privacy policy.

IP and CIDR libraries

Build the same kind of checks into your code using these documented libraries.

Python: ipaddress

Standard-library IPv4 and IPv6 parsing, networks and membership checks.

Go: net/netip

Standard-library address and prefix types with Contains and Overlaps methods.

ShowIP endpoint documentation

Next steps

Advertisement