SemVer Validator

Validate semantic versioning strings against SemVer 2.0.0 specification

Zero Dependencies · Works Offline

🔍 Validate SemVer String

📦 Bulk Validate

What Is the SemVer Validator?

The SemVer Validator is a free online tool that checks whether a version string conforms to the Semantic Versioning 2.0.0 specification. It parses the MAJOR.MINOR.PATCH format, validates prerelease identifiers (e.g., -alpha.1, -beta.2, -rc.1), and verifies build metadata (e.g., +build.123). All validation runs locally in your browser with no data uploaded to any server.

Core Features

How to Use

1. Enter a version string (e.g., 1.2.3 or 2.0.0-beta.1+build.42) in the input field.

2. The tool instantly validates and shows parsed components.

3. For bulk validation, switch to the Bulk tab and enter one version per line.

Use Cases

Case 1: Package Publishing

Validate your package version before publishing to npm, PyPI, or other registries.

Case 2: CI/CD Pipelines

Check version strings in automated release workflows to prevent format errors.

Case 3: Dependency Auditing

Bulk validate all version strings in package.json or lock files for compliance.

SemVer 2.0.0 Specification

SemVer 2.0.0 defines version format as MAJOR.MINOR.PATCH. MAJOR changes indicate incompatible API changes, MINOR changes add backward-compatible features, and PATCH changes fix bugs. Prerelease versions append a hyphen and dot-separated identifiers (e.g., 1.0.0-alpha.1). Build metadata appends a plus sign and dot-separated identifiers (e.g., 1.0.0+build.123). Numeric identifiers MUST NOT include leading zeroes (e.g., 01.02.03 is invalid).

❓ FAQ

What is SemVer validation?

It checks if a version string follows the Semantic Versioning 2.0.0 specification format: MAJOR.MINOR.PATCH with optional prerelease and build metadata.

What makes a valid SemVer string?

Three non-negative integers separated by dots (e.g., 1.2.3), optionally followed by prerelease (-alpha.1) and/or build metadata (+build.123).

Does this check npm version ranges?

No. This validates individual SemVer strings. For range constraints, use our SemVer Calculator tool.

Is my data uploaded?

No. All validation happens locally in your browser.

Can I validate multiple versions at once?

Yes. Use bulk mode — enter one version per line.

Prerelease vs build metadata?

Prerelease (after hyphen) affects precedence. Build metadata (after plus) is ignored in comparisons.

SemVer Validator | No Signup, Client-Side · No Server Uploads

Feedback: dexshuang@google.com