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.
Related Tools
Email ValidatorValidate email address syntax with detailed feedbackURL ValidatorCheck URL format and parse components for validityIP Address ValidatorValidate IPv4 and IPv6 address formatMAC Address ValidatorValidate MAC address format in multiple notationsUUID ValidatorValidate UUID format and detect version (v1–v5)Credit Card ValidatorValidate credit card numbers with Luhn algorithm (no data sent)Phone Number ValidatorValidate international phone number formatsDomain ValidatorValidate domain name and hostname syntax