Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Semantic Version Compare

Paste a list of versions, one per line, and see them sorted by semantic versioning rules. Add a range such as ^1.2.0 and every version is marked as matching or not.

How to use Semantic Version Compare online

  1. Paste the versions. One per line.
  2. Add a range if you like. Such as ^1.2.0.
  3. Read the sorted list. Each marked match or not.
  4. Copy the result. Highest and lowest shown.

Why use this free Semantic Version Compare

  • Sorts by semantic versioning rules
  • Pre-release handling
  • Caret, tilde and x-ranges
  • Highest and lowest shown
  • Works offline

Why 1.10 is higher than 1.2

A version is three numbers, major, minor and patch, and each is compared as a number, not as text. So 1.10.0 is newer than 1.2.0, although as text it sorts before it. A pre-release such as 1.2.0-rc.1 is lower than the release 1.2.0, and the build part after a plus sign, as in 1.0.0+abc, is ignored when comparing. This page follows those rules.

Sorting a list

Paste versions one per line, or separated by commas. A leading v is accepted and short forms such as 1.2 are read as 1.2.0. The page sorts the list from lowest to highest, or the other way round, and shows how many versions it read, the lowest and the highest. Lines that are not versions are listed and skipped.

Testing a range

Type a range in the npm notation and each version is marked as matching or not. A caret such as ^1.2.0 allows changes that do not touch the first number that is not zero, so it means 1.2.0 up to but not including 2.0.0. A tilde such as ~1.2.3 allows patch changes only. You can also use comparisons like >=1.0.0 <2.0.0, x-ranges like 1.x, and || to join alternatives.

Pre-releases and ranges

By the usual rule, a pre-release version matches a range only when the range itself names a pre-release of the same major, minor and patch. So 2.0.0-beta.1 does not match >=1.0.0, but it does match >=2.0.0-alpha. This keeps unfinished versions out of an update unless you ask for them.

Limits

The page covers the common range forms, not every rare one such as hyphen ranges. Up to 2000 versions can be sorted at once. If the range cannot be read, the page says so and shows examples. It works in this browser window and sends nothing anywhere.

Using the tool

Change the text or any option of the Semantic Version Compare and the answer moves straight away. Open a text file into the box, or drop one on it.

Semantic Version Compare: frequently asked questions

Why does 1.10.0 come after 1.9.0?
Each part is a number, and 10 is more than 9.
What does the caret mean?
It allows changes that keep the left-most non-zero number the same, so ^1.2.0 means from 1.2.0 up to but not including 2.0.0.
Is a pre-release lower than the release?
Yes. 1.0.0-rc.1 is lower than 1.0.0.
Does the build part count?
No. The part after the plus sign is ignored when comparing.
Which range forms are supported?
Caret, tilde, comparisons, x-ranges and || alternatives. Hyphen ranges are not.
Is the text I paste into the Semantic Version Compare uploaded?
Your text stays on this device when you use the Semantic Version Compare. The editor may keep the last text locally and offers to bring it back; you can dismiss it.
Can I save what the Semantic Version Compare gives me?
Press Use result as input and the Semantic Version Compare answer becomes the new input.

Related searches for Semantic Version Compare

  • Semantic Version Compare online
  • free Semantic Version Compare
  • Semantic Version Compare online free
  • Semantic Version Compare for mobile
  • Semantic Version Compare without sign up
  • Semantic Version Compare – Developer & Web Tools

Semantic Version Compare is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Developer & Web Tools →

Search tools