SemVer calculator
Parse a semantic version, compare two versions, check a range and see the next releases.
Parts
Enter a version to see its parts.
Next versions
The next major, minor and patch versions appear here.
Missing a feature or found a bug in SemVer calculator? Tell me on X (@_andrewtran) or by email.
How to use SemVer calculator
- Type a version such as 1.4.2-beta.1.
- Add a second version to see which one is newer.
- Copy any part or any of the next versions.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
How are pre-releases ordered?
A pre-release comes before its final version, so 1.0.0-rc.1 is older than 1.0.0. Numeric parts compare as numbers, so beta.11 is newer than beta.2.
Does build metadata affect the order?
No. Whatever follows the plus sign is ignored when two versions are compared.
Which ranges can I check?
The ones npm uses: caret and tilde ranges, comparisons such as >=1.0.0 <2.0.0, wildcards such as 1.x, hyphen ranges, and alternatives joined by two bars.
Related tools
Contrast checker
Check the WCAG 2 contrast ratio of a text colour on a background, with AA and AAA results.px to rem converter
Convert pixels to rem and rem to pixels for any root font size, a whole list at a time.Random string generator
Generate secure random strings, keys and tokens from letters, digits, symbols or your own characters.ROT13
Encode or decode text with ROT13, the letter-rotation cipher that undoes itself.