vextil
Back to Text Tools

Sort Lines

Sort text lines alphabetically, numerically, or in reverse order. Ideal for organizing lists, names, or data.

Enter Text
One item per line
Sorted Text
Alphabetically sorted lines
How to use
  1. 1Paste text with multiple lines
  2. 2Choose sort direction (A-Z or Z-A)
  3. 3Lines are automatically sorted
Features
  • Alphabetical Sorting

    Sorts lines A-Z or Z-A.

  • Case-Sensitive Option

    Choose whether case should be considered when sorting.

  • Numeric Sorting

    Detects numbers and sorts them numerically (1, 2, 10 instead of 1, 10, 2).

  • Length Sorting

    Optional: Sort by line length instead of alphabetically.

FAQ

How does numeric sorting work?

Lines starting with numbers are sorted numerically (1, 2, 10). Without this option, lexicographic sorting is used (1, 10, 2).

Are spaces considered?

Yes, spaces at the beginning affect sorting. Lines with leading spaces come first.

Can I sort by multiple columns?

Currently only simple line sorting. For complex sorting (e.g. CSV by column 2), use CSV tools.

Note: All processing happens in your browser. Your files are not uploaded to any server.