Breaking down a pre-release version
Enter 1.2.3-beta.1+build.5 as Version A to see it parsed into major 1, minor 2, patch 3, pre-release beta.1 and build metadata build.5.
Parse and compare semantic version numbers using SemVer 2.0.0 rules — free online.
About
Parses two semantic version strings into their component parts and compares them using official SemVer 2.0.0 precedence rules.
Developers use it to check whether one release supersedes another before writing a version range, while package maintainers use it to confirm a pre-release build sorts correctly relative to the stable release it's based on. It's one of many free developer tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.
Examples
3 worked examples
Enter 1.2.3-beta.1+build.5 as Version A to see it parsed into major 1, minor 2, patch 3, pre-release beta.1 and build metadata build.5.
Compare 2.0.0-rc.1 against 2.0.0 and the tool reports 2.0.0 has higher precedence, since a version without a pre-release always outranks the same version with one.
Compare 1.0.0-alpha.1 against 1.0.0-alpha.beta and 1.0.0-alpha.beta wins, because SemVer ranks a purely numeric pre-release identifier below an alphanumeric one at the same position.
FAQ
Quick answers to common questions about the SemVer Parser and Comparator.
It breaks two semantic version strings into their major, minor, patch, pre-release and build parts, and reports which one has higher precedence.
Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.
Yes. Both version strings are parsed and compared entirely on your own device — nothing is sent to a server.
A version in major.minor.patch form (e.g. 1.2.3), optionally followed by a pre-release (-beta.1) and/or build metadata (+build.5), with an optional leading "v".
Following the SemVer 2.0.0 spec: a version with a pre-release has lower precedence than the same version without one, numeric identifiers are compared as numbers, and identifiers are compared field by field.
No. Build metadata (after a +) is ignored when determining precedence — only major, minor, patch and pre-release identifiers are compared, exactly as the SemVer spec defines.
Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.
It follows the SemVer 2.0.0 specification strictly, so version strings that don't match that format (like a two-part 1.2 version) aren't accepted.
Did SemVer Parser and Comparator work for you?