Text Cleaner

中

Loading...

Text Cleaner — Remove Duplicate Lines and Clean Up Lists

One box, one click: remove duplicate lines (keeping first occurrences), drop empty lines, trim leading and trailing spaces, sort lines A→Z or Z→A, or merge everything into a single paragraph. Live statistics show exactly how many lines and duplicates were removed.

Clean exported data, mailing lists, keyword lists, log extracts, or any copy-pasted list that arrived messy. Everything processes locally in your browser — paste freely.

How to clean up a list

  1. Paste your text — one item per line.
  2. Toggle the operations you want (dedupe, drop empties, trim, sort).
  3. The cleaned output appears instantly with before/after stats.
  4. Copy the result with one click.

Frequently asked questions

Does "remove duplicates" change the order?

No — the first occurrence of each line is kept in its original position; later copies are dropped. Combine with sorting only if you want an ordered result.

Can it remove duplicates that differ only by spaces?

Yes — enable "Trim whitespace" together with "Remove duplicate lines" and lines are normalized before comparison, so "apple" and " apple " count as duplicates.

How do I turn a list into one comma-like line?

Use "Join into one line": lines merge into a single paragraph separated by spaces. For custom separators, join first and then use find-and-replace in your editor.

Related tools

PureKit · text-cleaner · Free online tool — files processed locally in your browser, no upload.