🍋
Menu
🍋 Text Tools

Sort Lines

Sort lines alphabetically, numerically, or randomly.

Free Browser-only No sign-up Popular
chars words sentences lines

Options

Results

Result

About Sort Lines

Sort lines of text in alphabetical, reverse, numeric, random, or length order. Optionally remove blank lines and control case sensitivity.

How It Works

The tool splits your text into individual lines, applies the selected sort algorithm, then joins them back together. Numeric sort parses leading numbers for proper ordering (2 before 10, not after).

Step by Step

  1. 1 Paste your list of lines
  2. 2 Choose the sort order (A→Z, Z→A, numeric, random, or by length)
  3. 3 Optionally enable case sensitivity or remove blank lines
  4. 4 Click Sort to reorder

Tips

  • Numeric sort handles numbers correctly — 2 comes before 10.
  • Random sort is useful for shuffling lists.
  • Sort by length to find the longest or shortest lines.

Frequently Asked Questions

Can I sort CSV data?
This tool sorts by full lines. For CSV, each row is sorted as a whole line based on its text content.