Tested in November 2026. Every sort order, the options and Hindi text were tested with sample lists.
How to sort lines of text
- Paste your list into the box on the left, one item on each line. The sorted list appears on the right as you type.
- Choose a sort order: A to Z, Z to A, shortest or longest line first, by number, reversed, or shuffled.
- Turn on the options you need: ignore upper and lower case, natural number order, trim spaces, remove empty lines or remove duplicate lines.
- Click Copy result or Download .txt.
Tips for better results
- Turn on natural number order so item2 comes before item10.
- Use By number when each line holds a price or a score. Lines without a number go to the end.
- Combine Remove duplicate lines with a sort to get a clean unique list.
- Trim spaces first if your lines have extra spaces at the start, because spaces change the sort order.
Limits to know about
- Sorting follows your browser language rules. Letters with accents and Hindi letters are placed by those rules, which can differ slightly between browsers.
- Shuffle gives a different order each time and cannot be repeated.
- By number reads the first number found in each line. Commas inside numbers, such as 1,200, are read as 1.
- Very long lists of many thousands of lines may feel slow on older phones.
Privacy
Your text is sorted inside your browser and is not sent to ToolsRiver.
Frequently asked questions
How do I sort a list alphabetically online?
Paste the list, keep A to Z selected, and copy the result.
How do I sort names without caring about capital letters?
Keep Ignore upper and lower case turned on.
Can it sort numbers correctly?
Yes. Choose By number, or turn on natural number order for text such as item2 and item10.
Does it remove duplicates?
Yes. Turn on Remove duplicate lines. It keeps the first copy of each line.
Is it free?
Yes, with no sign-up.
About this tool
ToolsRiver Sort Text Lines orders a list alphabetically, by length or by number and can clean it at the same time. It runs in your browser.