Text sorter in three steps
- 01
Paste your list
One item per line, or switch to items separated by commas or spaces.
- 02
Choose the order
A to Z, Z to A, natural, by number, shortest first, longest first, reverse, or shuffle. Tick remove duplicates or empty lines if you want.
- 03
Copy the sorted list
The note shows how many items were sorted.
What you get, and what to know
What you get
- Alphabetical both waysA to Z and Z to A use your language's letter order, with accents handled.
- Natural orderItem 2 comes before item 10, as people expect.
- Sort by number in the linePulls the first number from each line, including 1,200 and 3.5, and sorts by it.
- By lengthShortest first or longest first.
- Reverse or shuffleFlip the current order or mix the list at random.
- Clean while sortingIgnore case, remove duplicates and drop empty lines in the same pass.
Good to know
- Lines without a number come lastIn number sort, lines that contain no number sort after the others.
- Shuffle is random each timeRun it again for a different order. It cannot be repeated exactly.
- Columns need another toolTo sort a table by a column use Sort CSV rows.
When people use Text sorter
Alphabetize a bibliography
Put references or glossary terms in order.
Organize contacts
Sort names or email addresses and drop duplicates.
Draw names at random
Shuffle a list for fair turns or raffles.
Tidy imports and configs
Sort lines of code or settings to make them easy to scan.
Picking an order
Plain alphabetical order puts item 10 before item 2, because it compares character by character. Natural order fixes that by reading the numbers as numbers, which is what you want for file names and numbered lists.
Sort by number is different again: it ignores the words and uses the first number in each line, such as a price or a score.
Other list formats
The Items are setting changes what is sorted:
- One per line: the default for lists.
- Separated by commas: for lines like red, green, blue.
- Separated by spaces: for a row of words or tags.
Tidy first, sort next
Stray spaces can change the order. Run Remove extra spaces first, and use Remove duplicate lines if you need to keep the original positions of the first copies.
Questions, answered
How do I sort a list alphabetically online?+
Paste one item per line, choose A to Z, and copy the result.
Is my list uploaded?+
No. Sorting happens in your browser.
How do I sort numbers properly?+
Use Natural for numbered names, or By number in the line to sort by the first number in each line.
Can it remove duplicates while sorting?+
Yes. Tick Remove duplicates.
Can I sort comma-separated items?+
Yes. Set Items are to Separated by commas.
Does it work on Android and iPhone?+
Yes. It runs in any modern mobile or desktop browser.