Compare two semantic versions using SemVer 2.0 precedence.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Major, minor, and patch numbers are compared numerically; prerelease identifiers sort before the release and compare numeric identifiers numerically but other identifiers lexically. Build metadata after a plus sign is ignored for precedence.
Version a: 1.2.3 Version b: 1.10.0
Newer: 1.10.0 Comparison: versionB is newer Reason: Minor version 10 is greater than 2. Major diff: no Minor diff: yes Patch diff: no
Package managers, CI release tags, and changelog ordering compare semantic versions.