Subnet Merger
Paste two or more IPv4 networks. The result is the smallest subnet that contains all of them, aligned to a real prefix boundary.
What gets covered
Each input is normalized to its network and broadcast. The cover is the longest prefix whose block holds the lowest network and the highest broadcast in that set.
Overlapping and nested networks are counted once. A /24 inside a /16 does not widen the /16.
Install the cover as a route only when you mean to reach every address inside it, including addresses you did not type. 10.0.0.0/24 and 10.0.2.0/24 produce 10.0.0.0/22, which also contains 10.0.1.0/24 and 10.0.3.0/24. If those two blocks belong to someone else, the cover is the wrong route. Route summarization keeps the two /24s you actually listed.
Questions
No. The smallest subnet that contains every input can also contain addresses you did not list. The result says when that happens, and how many extra addresses are inside the cover.
Yes. 192.168.1.0/25 and 192.168.1.128/25 together are exactly 192.168.1.0/24. A gap, such as 10.0.0.0/24 and 10.0.2.0/24, needs a wider cover.
The cover stays the wider network. 10.0.1.0/24 inside 10.0.0.0/16 does not pull the result past the /16, and it does not add addresses beyond that /16.
No. This page is IPv4. Compare IPv6 blocks in the overlap checker. It will say whether one contains the other.
Sources
Reviewed 8 October 2026. The methodology page records what these labels do not cover.
