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

  1. Paste your list, one item per line.
  2. 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.
  3. Tick the clean-ups: remove duplicates, ignore case, trim spaces, remove empty lines.
  4. Copy the result.

Which order?

  • Natural sorts item2 before item10, 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, Apple and apple count as duplicates.
  • To compare two lists after cleaning, use Text diff.
  • For deeper clean-ups, see Text cleaner.

All guides

↑ ↓ navigateEnter openEsc close