Semver Range Checker

Check if versions satisfy semver ranges. Test your dependency version constraints and understand how npm/yarn version range syntax works with your specific versions.

Range Examples

^1.2.3

>=1.2.3 <2.0.0 (caret - minor updates)

~1.2.3

>=1.2.3 <1.3.0 (tilde - patch updates)

1.2.x

>=1.2.0 <1.3.0 (x-range)

1.2.3 - 2.3.4

>=1.2.3 <=2.3.4 (hyphen range)

>=1.2.3

Greater than or equal to 1.2.3

<2.0.0

Less than 2.0.0

1.2.3 || >=2.0.0

Either 1.2.3 or >=2.0.0 (or)

*

Any version

Test Multiple Versions

Enter a version and range above to check if the version satisfies the semver range

FAQ

What does the caret (^) range mean?

The caret range (^1.2.3) allows changes that do not modify the leftmost non-zero digit. For ^1.2.3, it matches >=1.2.3 <2.0.0. For ^0.2.3, it matches >=0.2.3 <0.3.0.

What does the tilde (~) range mean?

The tilde range (~1.2.3) allows patch-level changes. It matches >=1.2.3 <1.3.0. If minor version is not specified (~1), it matches >=1.0.0 <2.0.0.

What other range syntaxes are supported?

Supported syntaxes include: exact (1.2.3), greater than (>1.0.0), less than (<2.0.0), greater than or equal (>=1.0.0), hyphen ranges (1.0.0 - 2.0.0), x-ranges (1.x, 1.2.x), and OR ranges (1.0.0 || 2.0.0).

Related Tools