Text Sorter

Text Sorter: put any list into order in one click. Sort lines from A to Z, from Z to A, or by length, or shuffle them into a random order. It is handy for names, keywords, links, tasks and shopping lists. This free text sorter works entirely in your browser, and nothing you paste is uploaded or saved. If the case of your list is inconsistent, fix it first with the Case Converter tool.

How this tool works: paste your list, one item per line, then choose a sort order. The tool compares the lines and rearranges them. You can ignore upper and lower case while sorting, so Apple and banana sit in their true alphabetical places. Shuffle uses a random order, so every shuffle looks different. If the same line appears more than once, remove the repeats first with the Remove Duplicate Lines tool.

Choose a sort order above. Your sorted lines appear in the result box below.

How to Use the Text Sorter

  • Paste your list into the box above, one item per line.
  • Choose a sort order: Sort A to Z, Sort Z to A, Sort by length, or Shuffle lines.
  • Read the sorted lines in the result box.
  • Click Copy sorted lines to copy the result.
  • Use Try a sample to see the tool in action, or Clear to start over.

Ideas for Sorting Lines

  • Put names in alphabetical order for a class list, a team list or a guest list.
  • Sort keywords and tags before you plan content or run an SEO check.
  • Sort links and URLs so you can scan a long list quickly.
  • Shuffle a list to pick a winner, deal out tasks or mix up flashcards.

Frequently Asked Questions

What is the difference between A to Z and Z to A?

Sort A to Z puts lines in alphabetical order, from A to Z. Sort Z to A reverses that order, from Z to A.

How does sort by length work?

Sort by length puts the shortest lines first and the longest lines last. Lines of the same length are sorted A to Z.

Is the shuffle truly random?

Yes. Shuffle uses a random order, so the same list will look different every time you shuffle it.

Does this tool save my list?

No. Everything runs in your browser. Your list is never saved, uploaded, or sent anywhere.

Disclaimer: sorting compares lines as plain text. Numbers sort as text, so 10 comes before 2, and accented letters may sort differently in different browsers. Check the result before you use it.

More free tools: browse all tools, or try our List to CSV Converter to turn your sorted list into a spreadsheet file.

Scroll to Top