Version Comparator
Compare two versions, read the reason one beats the other, and sort a whole list by semantic version precedence.
Compare and sort versions
Result: —
The comparison reason appears here.
Versions: 0 · Invalid lines: 0
How to use the Version Comparator
- Type the two versions you want to compare in the A and B boxes.
- Paste a list of versions to sort, one per line, and choose ascending or descending order.
- Press Compare and sort to read the reason and copy the ordered list.
Features
- Compares two versions by the full SemVer precedence rules
- Explains exactly which part decided the result
- Sorts a pasted list and reports invalid lines
- Handles prerelease ordering such as alpha, alpha.1 and beta
Advertisement
Frequently Asked Questions
Common questions about the free online version comparator.
Type one version in each box and the tool reports which is greater together with the reason
for that result.
Major, minor and patch numbers are compared in that order, and a prerelease is always lower
than its release version.
Identifiers are compared part by part: numeric parts as numbers, text parts alphabetically,
and a shorter list of the same parts is lower.
A version with a prerelease has lower precedence than the same version without one, so the
plain release is greater.
No. Everything after a plus sign is ignored for precedence, so 1.0.0+1 and 1.0.0+2 compare
equal.
Yes. Paste one version per line, choose the order and the sorted list appears in the box
below.
They are skipped and counted in the invalid lines figure, so the sorted list only holds
versions that parsed.
Versions with equal precedence keep their relative order, which matters when only the build
metadata differs.
Yes. The tool is free, runs fully in your browser and does not send your version list
anywhere.
Last updated: October 10, 2026