FreeDev Tools

Semver Validator

Validate semantic version strings and compare two versions to find the required bump type.

Semantic Versioning (SemVer) uses the format MAJOR.MINOR.PATCH where: MAJOR increments indicate breaking changes, MINOR increments add backward-compatible features, and PATCH increments fix bugs. An optional pre-release tag (e.g., -alpha.1, -rc.2) comes after a hyphen, and build metadata (e.g., +build.5) after a plus sign. Build metadata is ignored in version comparisons. Pre-release versions have lower precedence than the associated normal version (1.0.0-alpha < 1.0.0).

Frequently Asked Questions

MAJOR.MINOR.PATCH where each is a non-negative integer. Optional pre-release (-alpha.1) and build metadata (+20230101) suffixes are supported.