About this tool
Four version helpers in one place, using the same rules as npm. Compare two versions and see which is newer and whether the change is major, minor or patch. Sort a messy list in true SemVer order, where 1.10.0 comes after 1.9.0 and pre-releases come before their release. Preview every possible bump, or test a range such as ^1.2.0 || >=2.1.0 <3 against a list of versions. Everything runs in your browser.
How to use SemVer Calculator
- Pick a tab: Compare, Sort, Bump or Check range.
- Type or paste your versions.
- Read the comparison, the sorted list or the next versions.
- For ranges, see which versions match and the highest one that does.
Frequently asked questions
What does ^1.2.3 allow?
Any version from 1.2.3 up to but not including 2.0.0. For 0.x versions the caret is stricter: ^0.2.3 allows only 0.2.x from 0.2.3 upward.
Why does a pre-release not match my range?
By npm's rules a pre-release only matches if the range mentions a pre-release on the same major.minor.patch. Tick Include pre-releases to match them anyway.
Is build metadata compared?
No. Versions that differ only after the + sign have the same precedence.