Install
4Internet / ip subnet
CIDR Set Union, Intersection and Subtraction
Combine, intersect or subtract IPv4 and IPv6 subnet sets.
Local calculation · no network request
Explore your inputs
Sample values are prefilled. Review or replace them, then calculate. Input is processed by this server for this request only.
A practical guide
How to use CIDR Set Union, Intersection and Subtraction
Combine or compare bounded IPv4/IPv6 prefix sets with exact address arithmetic and minimal merged output.
- Enter the two prefix lists and choose union, intersection or A minus B.
- Run the calculation. Host bits are normalized, duplicates removed and aligned siblings merged.
- Review the resulting coverage before adapting it to a routing or access-control policy.
Worked example
Illustrative input and expected interpretation. This example is not a live measurement.
Input
A: 192.0.2.0/24; B: 192.0.2.0/25; A minus B
What to expect
192.0.2.128/25
What to watch for
- Subtraction is directional: A minus B is different from B minus A.
- Subtracting scattered addresses can create many prefixes. A fragmentation limit rejects oversized output; it never silently truncates coverage.
Your input: submitted to this server for processing. This tool does not send it to an AI provider. Your input is processed for this request. Temporary processing files are removed afterward. Avoid pasting secrets or personal data.