SemVer Checker & Range Calculator
Validate SemVer 2.0.0 versions, test npm-style range expressions (^, ~, >=, A - B, ||), sort candidate versions, and preview version bumps.
- Expanded range
- -
- Next bumps (first valid)
- -
| Version | Valid | Matches range | Details |
|---|
About This Tool
Validates Semantic Versioning 2.0.0 strings, expands and evaluates npm-style version ranges (^, ~, >=, <=, >, <, =, A - B hyphen ranges, x/* wildcards, space-separated AND sets, and || OR unions), sorts lists of versions in official SemVer precedence order, and previews major, minor, patch, and prerelease bumps.
Built from scratch on the SemVer 2.0.0 specification without external dependencies, running entirely inside your browser.
Key Features
- Range expansion & evaluation: See the exact primitive comparator expansion (for example, ^1.2.3 expands to >=1.2.3 <2.0.0) and test multiple versions against the range at once.
- Strict SemVer 2.0.0 validation: Flags leading zeros in numeric identifiers, malformed prerelease tags, or missing version core segments.
- Precedence-aware sorting: Sorts version lists according to SemVer 2.0.0 section 11 rules (1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0).
- Next-version bumper: Computes the next major, minor, patch, and prerelease versions for the primary version.