Semver comparator
Compare two version numbers using the official Semantic Versioning 2.0.0 rules. Enter two versions to see which is newer and why - build metadata is ignored, as the spec requires.
Version A is newer
They share the same major.minor.patch but differ in the pre-release tag - a pre-release is older than the final release.
How semver precedence works
- Compare major, then minor, then patch, numerically.
- A version with a pre-release tag (like 1.0.0-rc.1) is older than the same version without it (1.0.0).
- Build metadata (after +) is ignored when comparing precedence.
This follows Semantic Versioning 2.0.0 (semver.org). It compares the values you enter; it does not fetch package data.