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.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Semantic Version Compare online
- Paste the versions. One per line.
- Add a range if you like. Such as ^1.2.0.
- Read the sorted list. Each marked match or not.
- 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?
What does the caret mean?
Is a pre-release lower than the release?
Does the build part count?
Which range forms are supported?
Is the text I paste into the Semantic Version Compare uploaded?
Can I save what the Semantic Version Compare gives me?
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.