Text cleaner

Paste messy text from a PDF, email or website and get clean text back, without broken lines, double spaces or extra blank lines.

Clean-up options

How to use the text cleaner

  1. Paste your text into the left box.
  2. Choose the clean-up options you want. The cleaned text appears on the right straight away.
  3. Click Copy cleaned text.

The default options suit most text: they replace double spaces with one, trim spaces from the start and end of lines, and reduce several blank lines to one.

What each option does

  • Replace double spaces and tabs with one space. Fixes gaps left by copying from tables, emails or old documents.
  • Remove spaces at the start and end of each line. Gets rid of stray indentation.
  • Remove extra blank lines. Keeps a single empty line between paragraphs, however many there were.
  • Join broken lines into paragraphs. Turns text copied from a PDF back into flowing paragraphs. Words split with a hyphen at the end of a line, such as “infor-mation”, are joined back together.
  • Remove all line breaks. Turns everything into one paragraph, which is handy for form fields that only accept a single line.
  • Change curly quotes and dashes to plain ones. Useful when pasting into code, spreadsheets or websites that mangle “smart” punctuation.

The tool also quietly removes invisible characters that often come along with copied text, such as non-breaking spaces and zero-width spaces, which can break search, formulas and word counts.

Common uses

  • Copying from PDFs into Word, Google Docs or an email.
  • Preparing captions for Instagram or Facebook after writing them elsewhere.
  • Cleaning data before pasting it into Excel or Google Sheets, where extra spaces can stop formulas like VLOOKUP from matching.
  • Fixing assignments and articles that picked up odd spacing from several sources.
  • Writing for websites: clean text avoids layout problems when you paste into a website editor.

A tip for PDFs with columns

If a PDF has two columns, copying may mix lines from both. In that case, select and copy one column at a time, clean each part here, and then put them together.

Last updated 3 December 2026

Frequently asked questions

Why does text copied from a PDF have line breaks in the middle of sentences?

PDFs store text as lines positioned on a page, not as flowing paragraphs. When you copy it, every line ends with a line break. Tick “Join broken lines into paragraphs” to turn them back into normal paragraphs.

Will it delete my paragraph breaks?

Not unless you ask it to. The default options keep one blank line between paragraphs. Only “Remove all line breaks” joins everything into a single paragraph.

What does “change curly quotes” do?

Word processors turn straight quotes into curly “smart” quotes and long dashes. Some websites, code editors and forms show these as strange symbols. This option swaps them for plain ' " and - characters.

Is there a length limit?

There is no fixed limit. The cleaning runs in your browser, so very long documents (hundreds of pages) depend on your device's speed.