logo

Line Sorter

Paste text and sort its lines alphabetically (A→Z or Z→A), by length, or numerically. Deduplicate, ignore blank lines, and choose case/locale behavior — all locally in your browser.

Sort & Deduplicate Lines
Client-side onlyFast & private
Sort mode

Alphabetical, Length, or Numeric

Ascending or Descending

Text rules

Strip space before sorting

Skip empty results

Remove duplicates

Collation

A vs a ordering

Locale-aware & numeric (e.g., file2 < file10)

Blank = browser default

Auto, LF or CRLF

Input

No input

Output

Live
Sorted lines will appear here…

How to use

  • Paste or upload your list on the left; results update live on the right.
  • Choose mode (Alphabetical, Length, Numeric) and direction (Asc/Desc).
  • Use Unique to remove duplicates and Ignore blank lines to skip empties.
  • Natural sort makes file2 come before file10; set Locale for language-specific order.
  • Pick Line endings (Auto/LF/CRLF), then Copy or Download the result.
  • Privacy: everything runs locally — nothing is uploaded.