Free · No sign-up · Runs in browser

Line Sorter

Sort lines alphabetically, naturally (10 after 2), numerically, or by length. Reverse, shuffle, dedupe, and case-insensitive options. 100% client-side.

Input
Sorted
// Sorted output will appear here…

Line Sorter

Sort text lines with four comparison modes:

  • Natural — file2.txt before file10.txt (via Intl.Collator)
  • Alphabetical — strict character-by-character
  • Length — shortest to longest
  • Numeric — parses leading numbers

Related

Remove duplicates only with Remove Duplicate Lines, or diff two blocks with Text Diff.

4 comparisons

Natural, alpha, length, numeric — plus asc/desc/reverse/shuffle.

Dedupe inline

Remove duplicates in one pass, case-aware.

Fully private

Text never leaves your browser.