Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Semantic Version Calculator

  • Free
  • Runs in your browser
  • No account needed

This tool shows the next patch, minor, major, and next pre-release for a version, compares two versions, and checks npm-style ranges like ^1.2.3 or ~1.2.3. Example: 1.4.2 gives next patch 1.4.3.

Next patch
1.4.3
Next minor
1.5.0
Next major
2.0.0
Next pre-release
1.4.3-0
Matches the range
Yes, 1.4.2 matches ^1.2.0
Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Semantic Version Calculator

You enter a version and, optionally, a second version or an npm-style range. The tool shows Next patch, Next minor, Next major, Next pre-release, a comparison, and whether the version matches the range. It follows Semantic Versioning 2.0.0 and the npm/node-semver rules for ranges and precedence. Results update instantly as you type, so there is no calculate button. Everything runs in your browser and nothing is uploaded. You can copy a result or create a share link that reopens the page with your inputs. Developers use this to pick a bump, check compatibility, and test ranges such as ^, ~, x, hyphen ranges, and || unions.

How to use it

  1. 1Enter a version in the Version field (for example 1.4.2).
  2. 2Enter a second version or an npm-style range in Compare with (for example ^1.2.3).
  3. 3Watch Next patch, Next minor, Next major, Next pre-release, Comparison, and Matches the range update instantly.
  4. 4Copy the result or share the link to reopen the page with the same inputs.
Advertisement

Worked example

Input Version: 1.4.2. Compare with: ^1.2.3. Results: Next patch = 1.4.3, Next minor = 1.5.0, Next major = 2.0.0, Matches the range = Yes (1.4.2).

The formula

Follows Semantic Versioning 2.0.0 and the npm rulesPatch fixes bugs (1.4.2 to 1.4.3), minor adds features (1.5.0), major breaks compatibility (2.0.0); a pre-release such as 1.5.0-beta.1 comes before 1.5.0, and bumping a pre-release releases it (1.5.0-beta.1 patch gives 1.5.0)Ranges: ^1.2.3 allows changes that do not touch the first non-zero number (>=1.2.3 <2.0.0), ~1.2.3 allows patches (<1.3.0), x and * are wildcards, a - b is inclusive and || means orBuild metadata (+abc) is ignored when comparingResults update instantly as the visitor types; there is no calculate buttonVisitors can copy the result and share a link that reopens with their numbers

Source: Semantic Versioning 2.0.0 (spec)npm / node-semver (range rules and implementation). Last checked 7 November 2026.

What it is good for

  • See next patch, minor, major and pre-release instantly as you type.
  • Test npm-style ranges like ^, ~, x, hyphen ranges, and || unions.
  • Run entirely in your browser with no files uploaded.
  • Follows npm/node-semver range rules; other ecosystems may interpret ranges differently.
  • Does not enforce your project release policy or change package files.
Advertisement

Questions people ask

Does the tool follow the official SemVer spec?

Yes. The tool follows Semantic Versioning 2.0.0 for version format and precedence. For range parsing it uses the npm/node-semver rules, which define caret and tilde behavior.

Will build metadata affect comparisons?

No. Build metadata after a plus sign is ignored for precedence and comparisons, per the SemVer 2.0.0 spec.

How does the caret operator ^ work?

Caret allows updates that do not change the leftmost non-zero version part. For example ^1.2.3 means >=1.2.3 and <2.0.0. See node-semver for 0.x special cases.

Do prereleases match ranges by default?

Not always. npm/node-semver treats prereleases as lower precedence. A prerelease only matches a range if the comparator includes a prerelease or you enable prerelease inclusion.

Can I compare two arbitrary versions?

Yes. Enter two version strings to see which has higher precedence. The comparator follows numeric MAJOR, MINOR, PATCH ordering and prerelease rules from SemVer.

Does the tool upload my versions or data?

No. The tool runs in your browser and does not upload inputs. You can copy results or create a share link to reopen the page with your inputs.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement