Sort Lines Alphabetically

Sort all lines of text in alphabetical or reverse alphabetical order.

Sort lines alphabetically, A to Z or Z to A. By default the sort ignores case and uses natural number order, so "item 2" comes before "item 10", and empty lines are removed. Accented letters sort with their base letters using your browser's language rules. Paste a list of names, words, files or tags and copy it back sorted.

Common use cases

  • Alphabetise a list of names or words
  • Sort tags, keywords or imports
  • Put a bibliography or glossary in order

How to use

  1. Paste the list, one item per line.
  2. Choose the order and options.
  3. Copy the sorted list.

FAQ

What is natural order?

Numbers inside text are compared by value, so 2 comes before 10. Plain alphabetical order would put 10 first.

Can I remove duplicates too?

Use the deduplicate lines tool before or after sorting.