Tools
Runs locally

Semver Compare

Compare two semantic versions, including prerelease.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

Compare two semantic versions, including prerelease. Runs in the browser. Nothing is uploaded.

About this tool

Find out which of two package versions is newer without guessing from string order. The comparison follows semantic versioning, so 1.10.0 is newer than 1.9.0 and 2.0.0 is newer than 2.0.0-rc.1.

How to use it

  1. 01

    Enter the first version.

  2. 02

    Enter the second version.

  3. 03

    Read which one is greater.

FAQ

Frequently asked questions

How are prereleases ordered?

A prerelease such as 1.0.0-beta comes before the final 1.0.0 release.

Why not compare as text?

Text order puts 1.10.0 before 1.9.0; semver compares each number separately.