Skip to content
Toolspire

Developer Tools

Semver Compare

Semver Compare is part of Toolspire and is ready as soon as this page loads. Pre-release tags such as -beta are not accepted. 1.2.3 and 1.2.3 are equal. Missing pieces are not assumed. Type all three numbers.

Runs in this tabFreeNo account

On this page

What you can do here

Numeric triples

Major, then minor, then patch. The first difference wins.

The sample is the trap

1.2.10 versus 1.2.3 is how string sorts embarrass a release list.

No ranges

“^1.2.3” is a range, not a version. It is rejected.

The sequence

How to use the Semver Compare

  1. 1

    Type both triples

    The sample should say the second is newer.

  2. 2

    Drop the beta before you type

    1.2.3-beta.1 is not compared here.

  3. 3

    Do not sort versions as text

    That is the mistake this page exists to avoid.

Worth knowing

  • Semver Compare on Toolspire: 1.2.10 is newer than 1.2.3. The patch numbers 10 and 3 are compared as integers.
  • Text order would say 1.2.3 > 1.2.10, because the character “3” is greater than “1”. This page does not do that.
  • 1.2.3 and 1.2.3 are equal.
  • A leading v is allowed. v1.2.3 is the same triple. A -beta suffix is rejected.

Ten is greater than three

Semantic versions in this checker are three integers. Comparison walks major, then minor, then patch and stops at the first difference. 1.2.10 and 1.2.3 share major and minor, then 10 beats 3. A string sort looks at the character after the last dot and decides “3” > “1”, which is why release lists that sort as text put 1.2.10 in the wrong place. Pre-release labels are a separate SemVer rule and are refused rather than guessed.

FAQ

Questions about Semver Compare

Where does Semver Compare run?

Semver Compare runs in this tab on Toolspire. What you type or drop in is not sent to us and is not stored on a server.

Which is newer, 1.2.3 or 1.2.10?

1.2.10.

Why would a spreadsheet get that wrong?

It compares the text. The character 3 is greater than the character 1.

Are 1.2.3 and v1.2.3 equal?

Yes. A single leading v is ignored.

Can I compare 1.2.3-beta?

No. Strip the pre-release tag or the page will reject it.

Keep going

Open the full directory

Last updated Report a problem or suggest a feature