MagmaNex LogoMagmaNex

Semver Calculator

Semantic versioning and npm ranges

What does this tool do?

Semver Calculator takes your current version and computes the next one for a major, minor, or patch release, with an optional pre-release tag. Built for package maintainers and release managers, it's a handy Semantic Versioning helper that also explains what each version range means.

How to use it

  1. Enter your configuration details.
  2. Review the generated output.
  3. Copy the ready-to-use code or file.

Pick the right bump type

Three side-by-side buttons preview the next major, minor and patch version; for 1.4.2, patch is 1.4.3, minor is 1.5.0, and major is 2.0.0. Per the SemVer spec, bumping minor resets patch, and bumping major resets both minor and patch. Type a value like alpha.1 or rc.1 into the pre-release field and it's appended to the result with a hyphen (e.g. 1.5.0-rc.1).

Understand npm semver ranges

The tool lists five common ranges for your current version. ^1.4.2 allows minor and patch updates within the same major; ~1.4.2 allows patch updates only. >=1.4.2 covers that version and above, while >1.4.2 <next selects only the versions in between. The hyphen range (1.4.2 - next) includes both ends. A copy button next to each range lets you paste the value straight into package.json.

Frequently asked questions

Can I prefix the version with 'v'?

Yes; the tool strips a leading v, so v1.4.2 and 1.4.2 parse the same way. The result and ranges display the input as you typed it.

What's the difference between ^ and ~?

^1.4.2 allows minor and patch updates within the same major (1.x.x). ~1.4.2 allows only patch updates (1.4.x), pinning the minor version.

What happens if I enter an invalid version?

The tool expects MAJOR.MINOR.PATCH in the form 1.2.3. If a value doesn't match that pattern, no calculation runs and an invalid-semver warning is shown.

Is Semver Calculator free?

Yes. Semver Calculator and all 300+ tools on MagmaNex are completely free with no signup or account required.

Is my data safe?

Yes. Everything runs locally in your browser. The data you enter is never sent to a server, stored, or shared.

Does it work on mobile?

Yes. Semver Calculator works on phones, tablets and desktops — no app download needed.

🔒 Privacy: everything runs in your browser, your data is never sent to a server.

Related Tools

📝 Related Articles

Popular Tools