SemVer Compare

Compare two semantic versions using prerelease precedence rules.

SemVer Compare
Local input
Output
Processing…
About this tool

Made for the task at hand.

Determine whether one semantic version is lower, equal in precedence, or higher than another using SemVer comparison rules.

How to use

  1. Enter exactly two complete versions on separate lines.
  2. Review the numeric result: -1, 0, or 1.
  3. Read the human-readable precedence comparison.
Your work stays yours.
Tool inputs are processed locally in your browser and are never sent to KitVerse servers. Clear the workspace when using a shared device.
Common questions
Does build metadata affect comparison?

No. Build metadata is ignored for precedence, so versions differing only after + compare as equal.

How does a prerelease compare with release?

A prerelease has lower precedence than the corresponding normal release, so 2.0.0-rc.1 is below 2.0.0.