๐Ÿ”ƒ Sort Lines

Sort any list or block of text alphabetically, reverse alphabetically, by line length or numerically. Remove duplicates while sorting. Free, private, no signup.

Sorted Output
Your sorted text will appear here...
โ€”

About Sort Lines

This tool sorts any list of text lines using your chosen sort method. Whether you need alphabetical sorting for a glossary, numerical sorting for a data list, or length-based sorting for readability โ€” all sorting is instant and runs entirely in your browser.

Sort Methods

  • A โ†’ Z โ€” alphabetical order, standard ascending sort
  • Z โ†’ A โ€” reverse alphabetical, descending sort
  • Shortest First โ€” sorts by line character length, shortest lines at top
  • Longest First โ€” sorts by line character length, longest lines at top
  • Numerical โ€” sorts lines that start with numbers in numeric order
  • Remove Duplicates โ€” removes duplicate lines while sorting
  • Case Sensitive โ€” uppercase letters sort before lowercase when enabled

Frequently Asked Questions

Yes. Use the Numerical sort mode for lines that start with numbers. This sorts 2 before 10, unlike alphabetical sorting which would put 10 before 2 because "1" comes before "2" alphabetically.

Yes. Enable the Remove Duplicates option alongside any sort method. The tool will sort first and then remove any repeated lines from the result.