← All text tools

Semantic Version Range Intersection

Paste several version constraints for one package and get the combined range, or the exact conflict, with sample versions that satisfy every constraint.

  • Free
  • No sign-up
  • Works on any device

About Semantic Version Range Intersection

Two packages that need different ranges of a third one can only work together if their ranges overlap. Paste one constraint per line, such as ^1.2.0, >=1.4.0 <2.0.0 or ~1.5, and the page turns each into a version interval, intersects them and prints the combined range. If nothing fits, it names the first constraint that breaks the overlap. Carets, tildes, x-ranges, hyphen ranges, comparators and || alternatives follow npm's rules. Example: ^1.2.0, >=1.4.0 <2.0.0 and ~1.5 combine to >=1.5.0 <1.6.0.

How to use Semantic Version Range Intersection

  1. List the constraints, one per line.
  2. Read the combined range, or the conflict and the constraint that causes it.
  3. Use the sample versions as candidates, and the table to see how each line narrows the range.

Why use this tool?

Also known as

Frequently asked questions

What does a caret range such as ^0.2.3 allow?

A caret allows changes that keep the first non-zero number: ^1.2.3 means from 1.2.3 up to but not including 2.0.0, ^0.2.3 means below 0.3.0, and ^0.0.3 means exactly the 0.0.x line below 0.0.4.

Does this page handle pre-release versions like 1.0.0-beta.1?

They are ordered by the SemVer rules, but npm also hides pre-releases unless a constraint names one on the same version, and this page does not model that. Sample versions are always plain releases.

What if the result says no stable release can match?

The intervals overlap only between two releases, such as above 1.2.3 and below 1.2.4. Only pre-releases such as 1.2.4-0 would fit, so the constraints are effectively incompatible.

Is Semantic Version Range Intersection free?

Yes. Semantic Version Range Intersection on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.