Text Cleaner

Remove extra spaces, empty lines, line breaks, duplicates and HTML from pasted text.

Runs in your browser
Clean text 22 characters removed
This text was copied from a PDF and the lines are broken in the middle of sentences.

It also has "smart quotes" and extra spaces.

How to use Text Cleaner

1

Paste messy text.

2

Tick the clean-up options you need.

3

Copy the clean text.

When to use Text Cleaner

  • Text copied from a PDF has a line break in the middle of every sentence.
  • A list pasted from a spreadsheet has duplicate rows and extra spaces.
  • You copied content from a website and want plain text without HTML tags.

Tips for best results

  • Use ‘Join broken lines’ for PDF text, and keep ‘Remove empty lines’ off if you want paragraphs to stay separate.
  • Remove duplicates to tidy email lists, keywords or names.
  • Clean text before counting words or comparing versions for more accurate results.

Related workflows

Frequently asked questions

Can it fix text copied from a PDF?

Yes. Use ‘Join broken lines’ to merge lines that were split mid-sentence.

About this tool

Text copied from PDFs, emails and websites is full of broken lines and stray spaces. Pick what to clean and get tidy text instantly.

Every option is applied in your browser in a fixed order, so you can tick several at once and get predictable results. The original text is not changed until you copy the cleaned version.

Text Cleaner runs entirely in your web browser. Your data are processed on your own device and are never uploaded to our servers, which makes it safe for personal and business files.