DevBench
All Tools

SemVer Comparator

DevRuns in browser

SemVer Comparator evaluates two version strings with the same semantics as npm and Node’s semver package — including prereleases and v-prefix normalization. See whether A is older or newer than B, the numeric compare result, and whether the difference is a major, minor, or patch bump. Use it when triaging dependency upgrades, Git tags, or package.json ranges.

Semantic versioning (SemVer)

Compare two versions using the same rules as npm, Yarn, and pnpm: major.minor.patch with optional prerelease tags (-alpha.1,-rc.0). The comparator validates each string, normalizes values like v1.0.0, and reports semver.compare and semver.diff so you can see whether a bump is major, minor, or patch — exactly what you need when reviewing dependency upgrades or release tags in CI.