Skip to content
Developer & CodeLocal · Stays on device

Semantic Version Calculator

Bump, compare and sort semantic versions, and check which versions an npm range like ^1.2.3 or ~1.4 matches.

  • SemVer 2.0.0, npm range syntax
  • Free to use
  • No sign-up or watermark
semantic-version-calculatorOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
SemVer 2.0.0npm range syntax
Open Semantic Version Calculator

About this tool

Three modes. Bump shows the next version for every kind of change — major, minor, patch and the pre-release variants — exactly as npm version computes it, including how a pre-release becomes its release. Compare & sort tells you which of two versions is newer and why, following the SemVer 2.0.0 precedence rules (numeric vs. alphanumeric pre-release identifiers, build metadata ignored), and sorts a whole list.

Check a range expands npm range syntax (^, ~, x-ranges, hyphen ranges, comparators and ||) into plain comparisons, tests a list of versions against it and picks the highest match. By default a pre-release only matches when the range names a pre-release of the same version, as npm does; you can include them. Open a mode directly with ?mode=bump, ?mode=compare or ?mode=range. Everything runs in your browser. What you paste is never uploaded, logged or stored.

  1. Input

    Your code or text

    SemVer 2.0.0, npm range syntax

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Choose Bump, Compare & sort or Check a range.

  2. 2

    Enter versions (and a range).

  3. 3

    Read the result and copy the version you need.

Zero-upload architecture

How to use Semantic Version Calculator for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Semantic Version Calculator

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Enter versions (and a range).

  3. 3

    Get your result

    Read the result and copy the version you need.

  • Local

    Git Branch Name Generator

    Turn a ticket number and description into a clean, valid git branch name like feature/PROJ-142-add-password-reset.

    Open tool
  • Local

    Git Command Builder

    Pick a task such as undoing a commit, renaming a branch or squashing, and get the exact git commands with explanations and danger warnings.

    Open tool
  • Local

    JSON Formatter

    Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.

    Open tool
  • Local

    Package Version Comparator

    Compare two package.json files to see added, removed and upgraded dependencies, classified as major, minor or patch.

    Open tool