This tool helps you sort lines of text in seconds. Paste a list with one item per line and choose an order: sort alphabetically from A to Z or Z to A, sort numbers from small to large, sort by length, reverse the list or shuffle lines into a random order. Natural sort puts "item 2" before "item 10".
How do I sort lines?
- Paste your list, with one item on each line.
- Pick the sort order you need.
- Copy the sorted list.

Everything happens in your browser, so long lists stay private and sort instantly.
Which sort order should I use?
| Order | What it does | Example use |
|---|---|---|
| A–Z | Sort alphabetically, smallest letter first | Name lists, glossaries |
| Z–A | Alphabetical, reversed | Checking the end of a long list |
| Numeric | Treats numbers as values | Prices, scores, IDs |
| By length | Shortest line first | Finding short keywords or long titles |
| Reverse | Flips the current order | Newest-first logs |
| Shuffle | Random order | Quizzes, draws, playlists |

What is natural sort?
A plain alphabetical sort compares text one character at a time. That puts "item 10" before "item 2", because the character 1 comes before 2. Natural sort reads the numbers inside the text as whole values, so the order becomes item 1, item 2, item 10, the way a person would expect. It is the better choice for file names, chapter lists and product codes.
Does it work with Urdu and other languages?
Yes. The tool uses your browser's language rules, so Urdu, Arabic and accented European letters sort in a sensible order. Capital and small letters are compared in a friendly way, so "apple" and "Apple" end up next to each other.
Clean your list first
Sorting works best on a tidy list. Before you sort, you can:
- Remove repeated entries with remove duplicate lines.
- Delete double spaces with remove extra spaces.
- Add a bullet, comma or quote to every line with add prefix and suffix to lines.
After you sort, the text to comma list tool can turn the result into one comma-separated line for a spreadsheet or SQL query.
Sorting numbers correctly
If your lines are numbers, such as prices or scores, choose the numeric order. An alphabetical sort would place 100 before 25, because it reads the first digit only. Numeric sorting compares the full values, handles decimals like 4.5 and puts negative numbers first. Lines that mix words and numbers, like "Room 12", are best sorted with the natural option. Blank lines are ignored, so a stray empty line at the end of your paste does not end up at the top of the result.
Common jobs people do with it
Teachers sort class lists by name before printing them. Shop owners sort product names so they are easy to find in a price list. Writers sort keywords by length to spot short head terms and long phrases. When you need a fair order for a draw or a class presentation, shuffle lines and use the result, or try the random name picker for a single winner.
