Semantic Version Comparator
Compare two semantic version numbers (semver) instantly in your browser. Free online version comparator for major.minor.patch dependencies.
Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.
- Version A — enter a text value. A typical Version A would be 1.2.3.
- Version B — enter a text value. A typical Version B would be 1.3.0.
- Review your results — the key output is highlighted, with supporting figures below.
Loading calculator…
Results
| Detail | Value |
|---|---|
| Relation | |
| Version A | |
| Version B |
What is this calculator for?
Compare two semantic version numbers to see which is greater.
How to Use This Calculator
Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.
- Version A — enter a text value. A typical Version A would be 1.2.3.
- Version B — enter a text value. A typical Version B would be 1.3.0.
- Review your results — the key output is highlighted, with supporting figures below.
What You'll Need
- Version A
- a text value · required
- Version B
- a text value · required
About This Calculator
SemVer compares major, then minor, then patch numbers in order — 1.2.3 is beaten by 1.3.0 because the minor is larger regardless of patch.
This comparator parses both versions and returns the relational operator (>, <, or =) between them. It accepts an optional leading "v" and ignores build metadata.
Comparison runs entirely in your browser.