Sort Lines Alphabetically

Sort lines of text A to Z, Z to A, numerically, naturally, by length or randomly. Sort by a column, ignore case, trim lines and remove duplicates in one step.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the Sort Lines Alphabetically

  1. Paste your list with one item per line.
  2. Choose the sort order and optional extras such as ignore case or remove duplicates.
  3. Copy the sorted list.

Why use this Sort Lines Alphabetically

  • Natural sortingPuts "item 2" before "item 10", which plain alphabetical sorting gets wrong.
  • Sort by columnPick a column number and separator to sort CSV-style lines by one field.
  • Nine ordersA-Z, Z-A, natural, numeric up and down, shortest, longest, reverse and shuffle.
  • Clean while sortingTrim spaces, drop blank lines and remove duplicates at the same time.

Frequently asked questions

How do I sort a list alphabetically?

Paste the list and keep "A to Z" selected. The sorted list appears instantly.

How do I sort numbers correctly?

Choose "Numeric low to high". Numbers are compared by value, so 9 comes before 10.

Can I sort by the second column?

Yes. Set "Sort by column" to 2 and choose the separator, such as comma or tab.

Related tools

More Text Formatting tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.