Semver Calculator
Parse a semantic version into its parts, compare two versions, see every bump and test it against an npm range.
Runs in your browser. Nothing leaves this device.
How to use Semver Calculator
- 1Type a version, such as 1.4.2-beta.3.
- 2Read its parts and the next major, minor, patch and pre-release versions.
- 3Type a second version or an npm range to compare or test it.
Questions
What does ^1.2.3 allow?
Anything from 1.2.3 up to, but not including, 2.0.0. For 0.x versions the caret is stricter: ^0.2.3 stops before 0.3.0.
What does ~1.2.3 allow?
Patch updates only: from 1.2.3 up to, but not including, 1.3.0.
Why does 1.3.0-beta.1 not match ^1.2.3?
npm only lets a pre-release match a range when a comparator in that range has a pre-release on the same major, minor and patch. This keeps beta versions out of normal installs.
Is the build part (+abc) compared?
No. Semantic Versioning 2.0.0 says build metadata is ignored when ordering versions, so 1.0.0+a and 1.0.0+b are equal.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.