All tools

Semver Calculator & Range Checker

Code

Parse, compare and bump semantic versions, check a version against a range, and find whether two ranges overlap and what they share

Was this tool helpful?
semverversioncomparerangeintersectionoverlapnpm

About Semver Calculator & Range Checker

Work with semantic versions the way npm resolves them. Compare & bump parses a version, compares two versions, checks whether a version satisfies a range such as ^1.2.0 or >=2 <3, and shows the next major, minor and patch. Range intersection takes two ranges and tells you whether they overlap and what the shared range is, which answers the question behind most peer-dependency conflicts: is there any version that satisfies both packages? Both modes follow the semver 2.0.0 rules for prerelease tags and run in your browser.

How to use Semver Calculator & Range Checker

  • 1.Enter two version strings to check which one is greater, useful when writing upgrade logic or changelog tooling.
  • 2.Paste a version range like `^1.2.3` or `~2.0.0` to see exactly which versions it would match before adding it to package.json.
  • 3.Increment a version (major, minor, or patch) to get the correctly bumped version string for a release script.
  • 4.Switch to Range intersection with two dependency ranges, for example from conflicting peerDependencies, to see whether any single version satisfies both.

Frequently asked questions

What semver spec does this follow?
It implements the same semantic versioning 2.0.0 rules and range syntax used by npm, including caret (`^`) and tilde (`~`) ranges.
Does it handle pre-release tags like `1.0.0-beta.1`?
Yes, pre-release and build metadata suffixes are parsed and correctly factored into comparisons and range matching.
Can I check if a version satisfies multiple ranges at once?
Yes, you can combine ranges with `||` or space-separated AND logic, matching npm's range syntax.
Is this the same logic as the `semver` npm package?
It follows the same specification and aims for matching behavior, but for critical build logic you should still rely on the actual `semver` npm package in your pipeline.
What does it mean when two semver ranges do not intersect?
No version satisfies both, so a package manager cannot pick one version for both requirements. You need to upgrade one dependency, relax a range, or allow duplicate copies.
Why did an old Utilix tool page redirect me here?
Utilix merged several single-purpose tools into the Semver Calculator & Range Checker. Each old URL now opens this page with its mode preselected (via ?mode=<old-tool-slug>), so bookmarks and links keep working. The old tools' REST endpoints, Node.js and Python SDK functions, and MCP tools are unchanged.