How to sort a list and remove duplicate lines online
Email lists, keyword lists and log lines often contain repeats and mess. Sort and remove duplicate lines cleans them quickly.
Steps
- Paste your list, one item per line.
- Choose the Order: keep current, A to Z, Z to A, natural (item 2 before item 10), by the number at the start of the line, shortest first, reverse, or shuffle.
- Tick the clean-ups: remove duplicates, ignore case, trim spaces, remove empty lines.
- Copy the result.
Which order?
- Natural sorts
item2beforeitem10, which plain A to Z does not. - By the number at the start helps with lines like
12 apples. - Shuffle is useful for random draws.
Tips
- With Ignore upper/lower case on,
Appleandapplecount as duplicates. - To compare two lists after cleaning, use Text diff.
- For deeper clean-ups, see Text cleaner.