Text Cleaner

Remove duplicate and empty lines, sort lines, trim spaces, and find and replace text, including with regular expressions.

Runs in your browser. Files are not uploaded.

How to use

  1. Paste your text.
  2. Choose the clean-up options.
  3. Copy the result.

Questions

In what order are the options applied?

Find and replace first, then trimming, removing empty lines, removing duplicates, sorting, and joining lines.

Can I use regular expressions?

Yes. Tick "Regular expression". Use $1, $2 in the replacement to insert captured groups.

More text tools