Toolstia / Semantic version comparator

Semantic version comparator

Enter two versions to see which is newer, bump a version to its next major, minor or patch number, or paste a list and sort it correctly.

Bump a version

Sort a list of versions

Versions follow the Semantic Versioning rules: numbers are compared one by one (1.10.0 is newer than 1.9.0), a pre-release such as -beta.1 is older than the same version without it, and the +build part is ignored.

How it works

  1. Enter version A and version B.
  2. Use the bump box to get the next version.
  3. Paste a list to sort it.

Why not sort as text?

Sorted as text, 1.10.0 comes before 1.9.0. Real version order compares each number, so 1.10.0 is newer.

Pre-releases

A version such as 2.0.0-beta.1 is older than 2.0.0. Pre-release parts are compared one by one, with numbers before words.

Build metadata

The part after + is ignored when comparing, so 1.0.0+abc and 1.0.0+xyz are equal.

Bumping

Major resets minor and patch to zero, minor resets patch, and patch adds one. Bumping a pre-release patch releases it.

Questions

Is a leading v allowed?

Yes, v1.2.3 is read as 1.2.3.

What about versions like 1.2?

SemVer needs three numbers. Write 1.2.0.

Is my data stored?

Everything happens in your browser, and nothing you enter is sent anywhere.