Loona Automation logoLoona Developer Tools
Home › Code Generators

Semver Comparator & Checker

In short: enter two version numbers and learn whether each is valid semver, which one is newer, and whether the gap is a major, minor or patch step.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

About

Semantic Versioning (semver.org) gives version numbers a contract: MAJOR for breaking changes, MINOR for backward-compatible features, PATCH for backward-compatible fixes — plus pre-release suffixes (1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-beta < 1.0.0) and +build metadata that never affects precedence. The comparator implements the spec's precedence algorithm exactly, including the fiddly pre-release rules (numeric identifiers compare numerically and rank below alphanumeric ones; a version with a pre-release is older than the same version without). It is the check CI pipelines and package managers run millions of times a day.

Frequently Asked Questions

Is 1.0.0-alpha newer than 1.0.0?

No — a pre-release is older than its release: 1.0.0-alpha < 1.0.0. That is the rule that lets package managers offer betas safely.

Does +build metadata matter?

Not for precedence: 1.0.0+exp and 1.0.0 are equal in ordering, though the metadata is preserved for information.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.