Semantic Version Comparer
Enter version numbers one per line. With two lines the tool tells you which is newer. With more it sorts them, and it shows the next patch, minor and major release.
Use the tool
Loading the tool…
About Semantic Version Comparer
Sort a list of version numbers using semantic versioning, the rules that describe major, minor and patch versions, including pre-release tags such as beta and rc. Enter one version per line.
Worked example
Enter 1.2.3, 1.10.0, 2.0.0-beta.1 and v1.2.3-rc.1. The tool puts them in order, with 1.10.0 after 1.2.3 because 10 is greater than 2.
Limits
Comparisons follow the semantic versioning rules. Projects that use different version schemes may give a different order.
How to use Semantic Version Comparer
- Enter one version per line, for example 1.4.2 or 2.0.0-beta.1.
- Read which is newer when you enter two, or the sorted list for more.
- Check the next patch, minor and major versions after the highest one.
Good to know
- Versions must have three numbers, major.minor.patch. A leading v is accepted and removed.
- A pre-release such as -beta.1 sorts before the same version without one. Build metadata after + is ignored.
- Numbers are compared as numbers, so 1.10.0 is newer than 1.9.0. Pre-release parts that are numbers sort before those with letters.
- Next versions for a pre-release follow the usual rule: 1.2.3-rc.1 becomes 1.2.3 when you bump the patch.
Frequently asked questions
Is 1.0.0-rc.1 older than 1.0.0?
Yes. A pre-release is always older than the release it leads up to.
Why is 1.10.0 newer than 1.9.0?
The parts are compared as numbers, 10 against 9, not as text.
Is anything I type saved or sent?
No. The work happens in your browser on this page, and nothing is stored or sent to us.