---
title: "SemVer Calculator Version Bump - AllTools"
description: "AllTools compares two semantic versions, bumps by major/minor/patch and parses prerelease metadata. No sign-up, and your code never leaves the browser."
canonical_url: "https://tool.warmday.wang/en/dev/semver"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "AllTools compares two semantic versions, bumps by major/minor/patch and parses prerelease metadata. No sign-up, and your code never leaves the browser."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "SemVer Calculator Version Bump"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **Semantic Versioning**

Semantic version calculation and comparison, following the SemVer 2.0 specification.

### **Version Bump**

**Current Version**

Major (MAJOR)

Incompatible API changes

Minor (MINOR)

Backward-compatible features

Patch (PATCH)

Backward-compatible bug fixes

**Prerelease Identifiers (Quick Select)**

**alpha**

**Alpha**

Internal test build, incomplete features, likely has many bugs

**beta**

**Beta**

Public test build, mostly complete features, may have few bugs

**rc**

**Release Candidate**

Release candidate, complete feature set, can become stable after testing

**dev**

**Development**

In-development version, unstable, for development only

**preview**

**Preview**

Preview version, showcases new features, may be unstable

**pre**

**Pre-release**

Pre-release version, refers to any version before official release

**Custom Prerelease ID**

### **Version Comparison**

**\=**

### **Version Range Check**

**Version**

**Range**

### **SemVer Specification**

Semantic version format: `MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]`

- **MAJOR** — Incremented for incompatible API changes
- **MINOR** — Incremented for backward-compatible feature additions
- **PATCH** — Incremented for backward-compatible bug fixes
- **PRERELEASE** — Prerelease identifier (e.g., alpha, beta, rc.1)
- **BUILD** — Build metadata (e.g., +build.123)

### Prerelease Identifier Details

Prerelease identifiers are appended after the PATCH version with a hyphen, indicating lower priority than the stable release. Identifiers can use dots as separators; numeric segments are compared numerically, alphabetic segments by ASCII order.

| **Identifier** | **Full Name** | **Common Use** | **Example** |
| --- | --- | --- | --- |
| `**alpha**` | Alpha | Internal test build, incomplete features, likely has many bugs | `1.0.0-alpha` |
| `**beta**` | Beta | Public test build, mostly complete features, may have few bugs | `1.0.0-beta.2` |
| `**rc**` | Release Candidate | Release candidate, complete feature set, can become stable after testing | `1.0.0-rc.1` |
| `**dev**` | Development | In-development version, unstable, for development only | `1.0.0-dev` |
| `**preview**` | Preview | Preview version, showcases new features, may be unstable | `1.0.0-preview` |
| `**pre**` | Pre-release | Pre-release version, refers to any version before official release | `1.0.0-pre.1` |

Priority order: `alpha < beta < rc < release` (e.g. `1.0.0-alpha < 1.0.0-beta < 1.0.0-rc.1 < 1.0.0`)

### Range Syntax

- `^1.2.3` — Compatible with 1.2.3 (≥1.2.3, <2.0.0)
- `~1.2.3` — Approximately 1.2.3 (≥1.2.3, <1.3.0)
- `>=1.0.0 <2.0.0` — Interval range
- `1.x` — Wildcard (≥1.0.0, <2.0.0)

### **Usage Guide**

#### **Features**

The semantic versioning tool follows the SemVer 2.0 spec and supports version parsing, major/minor/patch bump preview and one-click upgrade, prerelease identifier quick selection (alpha/beta/rc/dev/preview/pre, click to write and support auto-incrementing), two-version comparison, and common range expression validation (^, \~, >=) for package management scenarios like npm and Cargo.

#### **Steps**

Enter a MAJOR.MINOR.PATCH version in the "Current Version" field. Below it shows parsed major/minor/patch and three bump previews; click a card to upgrade. For prerelease identifiers, click the quick-select buttons (alpha/beta/rc/dev/preview/pre), which auto-increment on repeated clicks (e.g., alpha → alpha.1 → alpha.2). Or enter a custom ID and press Enter or click "Add Prerelease". In "Version Comparison", enter two versions to see their relationship. In "Range Check", enter a version and a range expression (e.g., ^1.2.0) to verify.

#### **Range Syntax Notes**

^1.2.3 means compatible version, allowing any upgrade within the same major (≥1.2.3 and <2.0.0); \~1.2.3 means approximately, only allowing minor upgrades (≥1.2.3 and <1.3.0); >=1.0.0 <2.0.0 is an interval range; 1.x is wildcard notation. Prerelease versions (with -alpha etc.) have lower priority than stable releases.

#### **Notes**

This tool implements simplified SemVer comparison: build metadata (+build.123) is parsed but not compared; complex range expressions (e.g., || or combinations) are not supported; versions must be in X.Y.Z three-segment numeric format or they will be rejected; different package managers (npm, pip, cargo) may have subtle differences in range definitions. For production, validate with the corresponding tool.

## **Related tools**

More from the same category · Developer Tools

[**Cron Expression**Visual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.](https://tool.warmday.wang/en/dev/cron) [**JSON Formatter**JSON beautify, minify and validate with auto error location for missing brackets and stray commas.](https://tool.warmday.wang/en/dev/json) [**Timestamp Converter**Convert Unix timestamps to dates and back with second/millisecond precision and live current time.](https://tool.warmday.wang/en/dev/timestamp) [**Regex Tester**Test regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.](https://tool.warmday.wang/en/dev/regex) [**JWT Parser**Split a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.](https://tool.warmday.wang/en/dev/jwt-parser) [**JWT Generator**Issue JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.](https://tool.warmday.wang/en/dev/jwt-generator)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/dev/semver#webpage","url":"https://tool.warmday.wang/en/dev/semver","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"SemVer Calculator Version Bump","description":"AllTools compares two semantic versions, bumps by major/minor/patch and parses prerelease metadata. No sign-up, and your code never leaves the browser."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/dev/semver#app","name":"SemVer Calculator Version Bump","description":"AllTools compares two semantic versions, bumps by major/minor/patch and parses prerelease metadata. No sign-up, and your code never leaves the browser.","url":"https://tool.warmday.wang/en/dev/semver","applicationCategory":"DeveloperApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/dev/semver#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/dev/semver#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Developer Tools","item":"https://tool.warmday.wang/en/dev"},{"@type":"ListItem","position":3,"name":"SemVer Calculator","item":"https://tool.warmday.wang/en/dev/semver"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
