Text Cleaner

Clean up text: remove duplicate and empty lines, trim spaces, collapse whitespace, sort lines, strip HTML and line breaks, add prefixes or suffixes.

Runs locally — nothing is uploaded

Input

Cleaned

How to use Text Cleaner

  1. Paste your text.
  2. Toggle the clean-up operations you need.
  3. Copy the result.

FAQ

In which order are operations applied?

Top to bottom as listed, so trimming happens before de-duplication.

About the Text Cleaner

Fix text copied from PDFs, spreadsheets and emails in one click. For more control over sorting and duplicates use the Sort Lines & Remove Duplicates, replace patterns with Find and Replace Text and convert HTML to clean Markdown with HTML to Markdown.

Also useful: Text Diff Checker · Word Counter

Popular searches

People find Text Cleaner by searching for:

  • remove duplicate lines
  • remove empty lines
  • sort lines alphabetically
  • remove extra spaces
  • text cleaner online