semver calculator
Parse, bump, compare, and validate semantic version strings per the semver.org spec. Handles pre-release identifiers and build metadata. Runs entirely in your browser.
What is semantic versioning (semver)?
Semantic versioning is a standard defined at semver.org that uses the format MAJOR.MINOR.PATCH. Bump MAJOR when you make incompatible API changes, MINOR when you add backwards-compatible features, and PATCH for bug fixes.
What does bumping major vs minor vs patch mean?
Bumping MAJOR resets MINOR and PATCH to 0 (1.2.3 → 2.0.0) and signals a breaking change. Bumping MINOR resets PATCH to 0 (1.2.3 → 1.3.0) and signals new backwards-compatible features. Bumping PATCH only increments the last number (1.2.3 → 1.2.4) and signals a bug fix.
How does semver compare pre-release versions?
A pre-release version has lower precedence than the release (1.0.0-alpha < 1.0.0). Identifiers are compared left to right. Numeric identifiers have lower precedence than alphanumeric ones. Example ordering: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-rc.1 < 1.0.0.
Is 1.0.0-alpha.1 a valid semver string?
Yes. Pre-release identifiers are added after a hyphen and can be dot-separated identifiers. Build metadata is appended with +: 1.0.0-alpha.1+build.007 is fully valid.
Does this tool send my version strings to a server?
No. All parsing, bumping, comparison, and validation happens in JavaScript in your browser. Nothing is sent to a server. The tool works offline once loaded.