SemVer Compare & Sort

SemVer Compare & Sort

Local Processing

Compare two semantic versions or sort a list of versions.

How It Works & Processing Standards

Compare two semantic versions or sort a list of versions.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Maximum input length: 100,000 characters

Choose compare or sort under "Task". Sorting versions as text puts 1.10 before 1.2; this tool compares numeric parts and pre-releases properly.

What You Can Do

Compare two versions
Reports A < B, A = B or A > B.
Sort a list
Ascending or descending.

How to Use SemVer Compare & Sort

  1. 1
    Choose a taskCompare or sort.
  2. 2
    Enter versionsTwo versions, or a list one per line.
  3. 3
    Read the resultSee the comparison or sorted list.

Examples

Compare
Input: 1.2.3 vs 1.10.0
Result: A < B
Sort
Input: 1.10.0, 1.2.3, 1.2.3-beta.1, 2.0.0
Result: 1.2.3-beta.1 1.2.3 1.10.0 2.0.0

Common Use Cases

  • Sorting release tags correctly
  • Checking a dependency meets a minimum version

Frequently Asked Questions (FAQ)

What about build info like 1.2.3+build.5?

As SemVer specifies, build metadata after + is ignored when comparing.

Have feedback or ideas for this tool? Suggest & Inquire →