Semver Parser and Validator
About this tool
About Semver Parser & Validator
Check a version string against the Semantic Versioning 2.0.0 specification and see its parts laid out: major, minor and patch numbers, prerelease identifiers and build metadata. A leading v or = is accepted and removed, as npm does, and the normalized version is shown ready to copy. When a string isn't valid, you get the specific reason, such as a missing patch number, a leading zero in 01 or beta.01, an empty identifier from a doubled dot, or a character SemVer doesn't allow, instead of a bare error. The parser also tells you whether the version counts as a stable release (0.y.z and prereleases do not), gives the next patch, minor and major versions, and the caret range that would accept it. Switch to Range check, Compare & sort or Bump for the rest of the calculator. Nothing is sent to a server.
Built and maintained by Abhi JainUpdated
How to Validate a Semantic Version
- 1
Enter the version
Type or paste it into Version, for example v2.0.0-rc.1+build.5.
- 2
Read the parts
See Major, Minor, Patch, Prerelease and Build metadata, or the reason the version is invalid, and copy any value.
- 3
Compare or bump next
Switch to the Compare & sort, Bump or Range check tab to see how this version orders against others, what comes next, or whether it satisfies an npm range.
Semver Parser & Validator: questions and answers
What is a valid semantic version?
MAJOR.MINOR.PATCH made of non-negative integers without leading zeros, optionally followed by -prerelease (dot-separated letters, digits and hyphens) and +build metadata. 1.0.0, 2.1.3-beta.2 and 1.0.0+20261202 are valid; 1.0, 01.2.3 and 1.2.3-beta..1 are not.
Is v1.2.3 valid SemVer?
Strictly, no: the specification does not include the v. It is a common tag naming convention, and npm and most tools strip it, so this parser accepts it and shows the version without it.
What is build metadata used for?
Information such as a build number or commit hash, written after a plus sign (1.4.0+sha.5114f85). It is ignored when versions are compared, so it must not be used to tell releases apart.
When is a version considered stable?
From 1.0.0 onward, for versions without a prerelease part. Versions 0.y.z are for initial development, where anything may change at any time, and prereleases like 1.0.0-rc.1 indicate the release is not yet final.
More Semver Calculator presets
Related tools
- Conventional Commit GeneratorWrite Conventional Commits messages with type, scope, breaking changes and footers, checked as you type.
- Git Cheat SheetSearchable git commands by task, with undo recipes for the mistakes everyone makes.
- JSON FormatterBeautify, minify and validate JSON with exact error locations, without changing a single value.
- GitHub URL ParserSplit GitHub URLs into owner, repo, branch and path, and get raw, clone, ZIP and CDN links.