Release reference / SemVer 2.0.0
Compare semantic versions
Which version comes first? Compare two releases, see the deciding rule and prepare a next core version. No login or repository access needed.
Enter two valid versions to see their precedence and a release-tag suggestion.
A has lower precedence than B
1.0.0-alpha.2 < 1.0.0-alpha.10
Prerelease identifier 2 differs numerically, so 2 sorts before 10.
- Version A
- Major 1 · Minor 0 · Patch 0 | Prerelease: alpha.2 | Build: none
- Version B
- Major 1 · Minor 0 · Patch 0 | Prerelease: alpha.10 | Build: none
Next core version from A
1.0.1 (release tag: v1.0.1)
Inputs stay in this page’s memory. No storage, input-bearing URLs, analytics or input network calls. Copy writes only when you choose it. Avoid pasting secrets into release labels.
How version precedence works
Compare major, then minor, then patch as numbers. For example, 1.10.0 follows 1.9.0 even though a simple text sort can suggest otherwise.
For equal core versions, a stable release follows every prerelease. Numeric prerelease identifiers compare numerically; they precede identifiers with letters or hyphens. Other identifiers use case-sensitive ASCII order. If shared identifiers match, the longer list follows the shorter one.
Build metadata is preserved but never breaks a tie: 1.0.0+one and 1.0.0+two have
equal precedence. This does not prove identical code or artifacts.
Choose a release deliberately
In SemVer, major communicates incompatible API changes, minor communicates compatible additions and patch communicates compatible bug fixes. Major zero indicates initial development; a comparator cannot verify compatibility.
A leading v is a release-tag convention, not part of strict SemVer. Enable it explicitly to
remove one lowercase prefix before comparison. Metadata remains intact. The suggested tag is text only: this
helper never creates a Git tag, downloads packages or queries releases.
Package ranges such as ^1.2.3, partial versions and other versioning schemes are unsupported.
Read the upstream SemVer 2.0.0 specification for the
complete rules.