Semver Calculator
Compare, validate ranges, increment, and sort semantic versions. Fully spec-compliant
Parse Version
Major
1
Minor
2
Patch
3
Pre-release
beta.1
Build
build.456
Normalized
1.2.3-beta.1+build.456
Compare Versions
vs
1.2.3 < 1.3.0OlderRange Check
1.2.5 in ^1.2.3SatisfiesVersion Increment
Major
2.0.0Minor
1.3.0Patch
1.2.4Pre-release
1.2.4-0Sort Versions
Ascending order
1.
0.9.02.
1.0.0-alpha3.
1.0.0-beta4.
1.0.05.
2.0.06.
3.1.0Range Expression Reference
^1.2.3Compatible with version (does not modify the left-most non-zero). ^1.2.3 = >=1.2.3 <2.0.0
~1.2.3Approximately equivalent (allows patch-level changes). ~1.2.3 = >=1.2.3 <1.3.0
>=1.0.0Greater than or equal to version
<=2.0.0Less than or equal to version
>1.0.0Greater than version
<2.0.0Less than version
1.0.0 - 2.0.0Hyphen range (inclusive). 1.0.0 - 2.0.0 = >=1.0.0 <=2.0.0
^1.0.0 || ^2.0.0Union of ranges (satisfies either)