Text & data TOOL
Sort a list
Sort a list of lines and remove duplicates.
Enter your text
On-device processingSort a list · How to use
Sort a list of lines and remove duplicates.
Example
orange apple banana → apple banana orange
Things to know
Enter one item per line. Use numeric mode for numbers and choose whether to remove duplicates.
Output options
Your files and results are never sent to a server. Everything is processed in this browser.
How to sort a list and remove duplicate lines
Tidy up names, keywords or file names collected in a spreadsheet or notes app, or strip repeated entries in one pass. Shuffle mode also helps when you need a fair speaking order or rota.
When to use this tool
- Alphabetize a list of participant names
- Remove duplicates from a collected keyword list
- Sort names like file2 and file10 by their numbers
- Shuffle a presentation order
Step-by-step instructions
- Enter the items you want to sort, one per line.
- In Sort order, choose Ascending, Descending or Random.
- Choose whether to keep or remove duplicate items, and pick Alphabetical or Numeric sort mode.
- Choose Convert, then copy or download the result.
Frequently asked questions
Why does 10 come before 2 when I sort numbers?
Alphabetical mode compares characters. Switch to Numeric mode to get 2, 10, 100 and put item2 before item10. Digits are compared as whole numbers, so decimals like 1.5 and 1.25 or negative values may not follow their true numeric order.
How does duplicate removal decide two lines are the same?
Leading and trailing spaces are trimmed from each line, then only identical lines count as duplicates. Apple and apple remain separate items, and blank lines are dropped.
How many lines can I sort?
Up to 5,000 non-blank items. Random order uses the browser's cryptographic random number generator; to draw just a few names from a list, the random picker is a better fit.