Add to Chrome

Text cleaner

Paste messy text and clean it up: remove extra spaces and line breaks, delete duplicate lines, strip hidden characters and HTML. Free, and private.

Clean up

How to use it

  1. Paste your text on the left.
  2. Tick the clean-up options you want. The result updates at once.
  3. Copy the clean text or download it.

Common questions

How do I remove extra spaces from text?

Tick “Collapse repeated spaces” and “Trim spaces”. Runs of spaces become one, and spaces at line ends are removed.

How do I remove line breaks?

Tick “Join everything into one line”. This is handy for text copied from PDFs.

What are hidden characters?

Zero-width spaces and non-breaking spaces sometimes come along when you copy from web pages or AI tools. They can break search and code. This option removes them.

Can I remove duplicate lines?

Yes. Tick “Remove duplicate lines” to keep only the first copy of each line.

Is my text uploaded?

No. It is cleaned in your browser.

More free tools