Dev Tools

Semver Checker

Validate semantic versions, compare two versions, and check if a version satisfies a range.

Parse Version
Major
2
Minor
3
Patch
1
Pre-release
-
Build
-
Valid semantic version
Compare Versions
<
2.3.1 is older than 2.4.0
Range Check
Does 2.3.1 satisfy this range?
Satisfied
^2.0.0 means >=2.0.0 and <3.0.0
Semver Range Reference
RangeMeaning
^1.2.3>=1.2.3 and <2.0.0 (compatible changes)
~1.2.3>=1.2.3 and <1.3.0 (patch-level changes)
>=1.2.3Greater than or equal to 1.2.3
>1.2.3Strictly greater than 1.2.3
<=1.2.3Less than or equal to 1.2.3
<1.2.3Strictly less than 1.2.3
1.2.3Exact match
Was this page helpful?

Related tools

About Semver Checker

Check whether a semantic version satisfies a range, and compare versions to see which is newer. Useful for reasoning about npm-style dependency ranges like ^1.2.0 or ~2.3.x.

How to use

  1. Enter a version (e.g. 1.4.2) and a range (e.g. ^1.2.0).
  2. See whether the version satisfies the range.
  3. Compare two versions to determine ordering.

Frequently asked questions

What is the difference between ^ and ~?
^1.2.3 allows minor and patch updates (<2.0.0), while ~1.2.3 allows only patch updates (<1.3.0).
How are pre-release versions handled?
Pre-releases like 1.0.0-beta sort below the final release and only match ranges that explicitly include them.