Skip to content
TabKiwiTabKiwi

SemVer Parser

Split a version string into major, minor, patch, pre-release and build parts, and explain errors.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

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

  1. Type or paste a version string.
  2. Check whether it is valid, and read the reason if not.
  3. Read the major, minor, patch, pre-release and build parts.
  4. 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.

More Developer tools

View all 91 →