About this tool
Paste a version like 2.7.0-rc.3+build.42 to see each part on its own: the three numbers, every pre-release identifier and the build metadata. If the string is not valid Semantic Versioning 2.0.0, you get a plain explanation of the rule it breaks, such as a leading zero or a missing patch number, and the closest valid version. Parsing runs on your device.
How to use SemVer Parser
- Type or paste a version string.
- Check whether it is valid, and read the reason if not.
- Read the major, minor, patch, pre-release and build parts.
- Copy the normalized version or a matching caret or tilde range.
Frequently asked questions
Is v1.2.3 a valid version?
Strictly, no: SemVer has no v prefix. npm and most tools accept it and strip the v, so the tool shows a warning instead of an error.
Can a version have a fourth number, like 1.2.3.4?
Not in SemVer. Use a pre-release or build suffix instead, for example 1.2.3+4.