Skip to content
Run here 100% in your browser, no upload, no login

Semver Compare

Compare two semantic versions and break each one down into its parts.

⇄

Part Version A Version B

How to use it

  1. Type the first version into Version A and the second into Version B — a v prefix is tolerated.
  2. Both inputs update the comparison as you type, or press the compare button to re-run.
  3. The verdict line shows A > B, A < B or A = B under SemVer precedence rules.
  4. The table breaks both versions into major, minor, patch, prerelease and build metadata.
  5. Try a prerelease pair (for example 2.0.0-beta.1 vs 2.0.0) to see why the full release ranks higher.

Common use cases

Why it stays private

The comparison runs with a local parser and a few comparisons in the browser. Neither version string is sent anywhere, so internal release tags are safe to paste.

FAQ

Q: Which rules does the comparison follow? A: SemVer 2.0.0: numeric major/minor/patch first, then prerelease identifiers compared segment by segment, where numeric identifiers rank below alphanumeric ones and a version without a prerelease outranks one with it. Build metadata is ignored for ordering.

Q: Are partial versions like 1.2 accepted? A: No. SemVer requires three numeric parts; inputs like 1.2 or 1 are rejected with an error rather than guessed, so the verdict always matches the spec.

Q: Why does 2.0.0 count as newer than 2.0.0-rc.1? A: Per the spec, a release candidate is a pre-release of that version, and any version with a prerelease has lower precedence than the associated normal version.

Your data stays on this device

Semver Compare runs 100% locally. Everything you paste or drop is processed by your own browser and never transmitted. Nothing is stored on our servers — close the tab and it is gone.

Nothing you type is sent to a server, logged, or used for analytics. The page works even with your network disconnected after first load.