Skip to content
TabKiwiTabKiwi

SemVer Calculator

Compare and sort semantic versions, preview the next bump, and test which versions an npm range accepts.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Four version helpers in one place, using the same rules as npm. Compare two versions and see which is newer and whether the change is major, minor or patch. Sort a messy list in true SemVer order, where 1.10.0 comes after 1.9.0 and pre-releases come before their release. Preview every possible bump, or test a range such as ^1.2.0 || >=2.1.0 <3 against a list of versions. Everything runs in your browser.

How to use SemVer Calculator

  1. Pick a tab: Compare, Sort, Bump or Check range.
  2. Type or paste your versions.
  3. Read the comparison, the sorted list or the next versions.
  4. For ranges, see which versions match and the highest one that does.

Frequently asked questions

What does ^1.2.3 allow?

Any version from 1.2.3 up to but not including 2.0.0. For 0.x versions the caret is stricter: ^0.2.3 allows only 0.2.x from 0.2.3 upward.

Why does a pre-release not match my range?

By npm's rules a pre-release only matches if the range mentions a pre-release on the same major.minor.patch. Tick Include pre-releases to match them anyway.

Is build metadata compared?

No. Versions that differ only after the + sign have the same precedence.

More Developer tools

View all 91 →