Line Sorter

Sort lines alphabetically, by length, numerically, or randomly with options for case-insensitive sorting and blank line removal.

Sort Options

Sample Data

â„šī¸ About Line Sorter

  • Alphabetical sort uses locale-aware comparison for accurate ordering
  • Numeric sort handles integers and decimals correctly
  • Random shuffle uses Fisher-Yates for uniform distribution
  • Pairs well with Remove Duplicate Lines for full list cleanup

How to use Line Sorter

  1. 1
    Paste text — Enter or paste the lines you want to sort.
  2. 2
    Choose sort mode — Select alphabetical, by length, numeric, or random.
  3. 3
    Click Sort Lines — Sorted output appears instantly.
  4. 4
    Copy or download — Use the result directly.

Line Sorter runs entirely in your browser — your text never leaves your machine.