Semantic Version Tool
Check strict SemVer 2.0.0 strings, compare two versions, or sort a newline-separated list. Handles prerelease precedence exactly and ignores build metadata for precedence while preserving it in output.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What gets checked and printed
The input is a newline-separated list of version strings, each checked against strict SemVer 2.0.0: MAJOR.MINOR.PATCH with an optional -prerelease and +build part. Validate mode returns a three-column table of every line with Valid or Invalid and, when it fails, the expected shape.
A release-day use
Before tagging a release, paste the candidate versions from your package manifests or CI matrix and confirm every one is well formed. In sort mode the same list comes back ordered by precedence, so you can see whether the new tag really sits after the last one.
Modes and the two extra options
The mode select chooses validate, compare or sort. Compare takes exactly one version in the box and pairs it with the second version field, printing whether the first is less than, greater than or of equal precedence to the second. The descending toggle reverses the sort output.
Strictness and build metadata
A leading v, surrounding whitespace inside the token or another prefix is rejected, and sort refuses to run if any line is invalid. Build metadata is ignored when comparing precedence but is kept in the displayed and sorted strings. A prerelease always sorts below the plain version.
Nothing leaves the tab
All parsing and comparison runs in your browser; no version string is uploaded and the page keeps working offline. That makes it safe for private version numbers that have not been published yet.
Questions
Does build metadata affect comparison?
No. SemVer 2.0.0 says build metadata is ignored for precedence. It is preserved in displayed and sorted values.
Are leading v prefixes accepted?
No. This tool validates strict SemVer 2.0.0. Remove a leading v, whitespace, or other tag prefix before checking.
How are prereleases ordered?
A version with a prerelease has lower precedence than the corresponding normal version. Numeric identifiers compare numerically, and numeric identifiers always precede non-numeric identifiers.
Related tools
See categoryNumber Base Converter
Convert an integer between any bases from 2 to 36 with arbitrary precision (BigInt).
Unix Timestamp Converter
Convert Unix timestamps to dates and dates to every common timestamp format.
JSON Formatter & Validator
Pretty-print, minify, recursively sort keys or validate JSON, with line/column errors.
.dockerignore Generator
Build a .dockerignore for a lean Docker build context — pick a stack preset and add custom lines.