Semver Calculator
Free online semver calculator tool, no installation required
About Semver Calculator
This tool works with Semantic Versioning strings. It parses a version into its major, minor, patch, prerelease, and build metadata parts; compares two versions by their numeric core; and computes the next major, minor, or patch release. Input is validated against the strict MAJOR.MINOR.PATCH format with optional -prerelease and +build segments.
How to Use
1. Switch between Parse, Compare, and Increment modes using the mode buttons. 2. In Parse, enter a version to see major, minor, patch, prerelease, build metadata, and the full version, each with its own copy button. 3. In Compare, enter Version A and Version B to see whether A is greater than, less than, or equal to B. 4. In Increment, enter a version and click Next Major, Next Minor, or Next Patch to bump it and read the result; each result has its own copy button.
Parsing, Comparison, and Bump Rules
Versions must match MAJOR.MINOR.PATCH with optional -prerelease and +build segments; a leading 'v' or labels like 'latest' are rejected. Parse splits the string into the five components and echoes the canonical form. Compare evaluates only the three numeric parts (major, then minor, then patch), so two versions equal on those compare as equal regardless of their prerelease tags — prerelease precedence per the SemVer spec is not applied. Increment bumps the chosen component: Next Major adds one to major and resets minor and patch to zero, Next Minor adds one to minor and resets patch to zero, and Next Patch adds one to patch. All three drop any prerelease and build metadata, and clicking a bump button also writes the bumped version back into the input so you can chain bumps.
▶What version formats are accepted?
▶How does Compare treat prerelease tags?
▶What does the Next Major button do to minor and patch?
▶Is my data sent to a server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee