D

Text Line Sorter

Sort lines alphabetically or numerically

Sort lines of text alphabetically, numerically, by length, or in reverse order. Supports case-insensitive sorting.

How to Use Text Line Sorter

  1. 1Paste your text lines into the input box
  2. 2Select sort type: A–Z, Z–A, numeric, or by length
  3. 3Toggle case sensitivity if needed
  4. 4Click "Sort" to reorder the lines
  5. 5Copy the sorted output

Features

  • Alphabetical A–Z and Z–A sorting
  • Numerical sorting (handles mixed text/numbers)
  • Sort by line length (shortest or longest first)
  • Case-sensitive and case-insensitive modes
  • Remove blank lines option
  • Handles thousands of lines instantly

Frequently Asked Questions

Can it sort numbers correctly?

Yes. Numeric sort handles numbers as numbers, so 10 comes after 9 (not after 1 as in alphabetical sort). Mixed text lines fallback to alphabetical comparison.

Related Tools