Semantic Version Comparator

A B

About this tool

Enter two version numbers in Semantic Versioning form (MAJOR.MINOR.PATCH, optionally with a -prerelease tag such as 1.2.0-alpha.1) and the tool tells you whether A is greater than, less than or equal to B. Comparison follows the SemVer 2.0.0 precedence rules: the numeric major, minor and patch fields are compared first as integers, so 1.10.0 correctly sorts above 1.9.0.

When the core versions are equal, pre-release tags are compared identifier by identifier: a version with a pre-release tag has lower precedence than the same version without one, numeric identifiers compare numerically, alphanumeric ones compare in ASCII order, and a longer set of identifiers wins when all earlier ones are equal. Each version is also broken into its major, minor, patch and prerelease parts. Everything runs locally in your browser.

Related tools

Number Base ConverterJSON FormatterURL Parser