Developer tools
Practical guide: Semver Comparator
Use Semver Comparator when you need a quick way to work through this task. Compare two semantic version numbers. This guide walks through a small example and the checks to make before you use the result.
Before upgrading a library, compare its version with the one installed in your project. Semantic versioning separates major, minor and patch numbers so version 1.10 is not mistaken for 1.1.
How to use the tool
- Open the tool and start with the worked example below.
- Enter two versions (like 1.2.3 and 1.10.0) to see which is newer and whether they're compatible under common semver rules.
- Verify the result against the example before using it in your project.
Try a small example
Example input or settings
Compare 1.10.0 and 1.2.3; the first is newer.
What to check
Compare 1.10.0 and 1.2.3. The first is newer. Try 2.0.0 against 1.10.0 and investigate breaking changes.
Does a higher version guarantee a safe upgrade?
No. SemVer communicates intended compatibility, but actual changes depend on the package. Check release notes and run your own tests.
When this is useful
For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.
Before you rely on the result
Validate the output in your own environment. Formatting or conversion does not prove that data or code is safe or correct.