Semantic Version Comparator

Compare two semantic version numbers (semver) instantly in your browser. Free online version comparator for major.minor.patch dependencies.

Loading calculator…

Results

Comparison
DetailValue
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.

  1. Version A — enter a text value. A typical Version A would be 1.2.3.
  2. Version B — enter a text value. A typical Version B would be 1.3.0.
  3. 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.

Worked Examples

Example

1.2.3 < 1.3.0

Frequently Asked Questions

How are prerelease versions compared?
For simplicity, this tool compares only major.minor.patch. Full SemVer also orders prerelease tags (e.g. -beta) below the release; that level is not shown here.
Does it handle "v1.2.3"?
Yes — a leading "v" is accepted and stripped before comparison, so v1.2.3 equals 1.2.3.