Text Sorter
Sort lines of text alphabetically A to Z or Z to A with our free Text Sorter. Paste your lines, sort them instantly and copy the result — all in your browser.
🔒 Processing happens in your browser — nothing is uploaded.
How to use Text Sorter
Follow the steps below
Paste or type your lines into the box, one line at a time. The example lines are banana, apple and cherry.
Click Sort A–Z to sort them from A to Z, or Sort Z–A to sort them from Z to A.
Click Copy Result to copy the sorted lines, or Reset to go back to the example lines.
Features
- ✓Sorts lines alphabetically A to Z or Z to A in one click.
- ✓Case-insensitive sorting, so Apple and apple sort together.
- ✓Empty lines are ignored, and duplicate lines are kept.
- ✓Copy Result button for pasting the sorted lines anywhere.
- ✓Works in your browser — no account and no sign-up.
Supported formats and limits
Enter plain text with one item per line, using line breaks. There is no practical limit on the number of lines, and the tool keeps your original spelling and spacing inside each line. Sorting is case-insensitive and ignores empty lines.
Frequently asked questions
How do I sort lines A to Z?
Paste your lines one per line, then click Sort A–Z. For banana, apple and cherry the result is apple, banana, cherry.
What does Sort Z–A do?
It sorts the same lines in reverse alphabetical order. For banana, apple and cherry the result is cherry, banana, apple.
Is the Text Sorter free?
Yes. It is completely free, with no sign-up and no limits on how many lists you sort.
Nextrays