notadevblog
Esc

    SemVer Comparator & Range Checker

    Compare, sort and bump semantic versions and check them against npm ranges like ^1.2.3 or ~2.0. Prereleases, build metadata and caret rules handled as npm does.

    Result

    How the versions are read

    At a glance

    Processing
    Locally in your browser, also offline once the page has been opened. Input never leaves your device.
    Standard
    SemVer 2.0.0 and npm range syntax (^, ~, x, hyphen, ||)
    Prereleases
    alpha.2 sorts before alpha.10; a prerelease only matches ranges that name one at the same x.y.z
    For agents
    WebMCP: semver_evaluate · Module: /core/semver.js · Markdown · llms-full.txt

    How to Use

    1. 01 Enter versions Put one version per line, for example 1.2.3 or 2.0.0-rc.1. A v prefix is accepted. The table shows how each one is read.
    2. 02 Pick what to do Compare two versions, sort a list, test versions against a range or bump one version.
    3. 03 Read the result The result appears below. For ranges you also see the canonical form, so you can check what ^ or ~ really allows.

    About this tool

    Semantic Versioning gives version numbers a meaning: a major step may break compatibility, a minor step adds features, a patch step fixes bugs. Package managers use it to decide which updates are safe.

    The comparator follows semver.org 2.0.0 and the range rules of npm. It is written for this site and has no dependencies.

    Frequently Asked Questions

    More tools

    Cookie settings

    Here you can customize your cookie preferences.

    Necessary

    Essential for website functionality and security

    Preferences

    Remember your settings