Skip to content

Remove Extra Spaces

Clean up text pasted from PDFs, emails or websites: double spaces, tabs, spaces at the ends of lines and extra blank lines.

Empty lines

How to remove extra spaces

  1. Paste your text in the left box.
  2. Choose what to clean (the usual choices are already on).
  3. Copy or download the cleaned text on the right.

Good to know

Then count the words with the word counter, or fix capitals with the case converter.

Frequently asked questions

What does this tool clean?

Double (or more) spaces and tabs become one space, spaces at the start and end of lines are removed, and blank lines are reduced to one between paragraphs. Each of these can be turned off.

Why does text copied from a PDF have so many spaces?

PDFs place words at fixed positions, so copied text often comes with extra spaces, line breaks in the middle of sentences and blank lines. This tool fixes the spaces and blank lines.

Will it remove the line breaks between my paragraphs?

Not by default: one blank line between paragraphs is kept. Choose "Remove all" under Empty lines to remove blank lines completely.

What are non-breaking spaces?

Invisible special spaces that often come from web pages and Word. They look like normal spaces but can break searches and forms. The tool turns them into normal spaces.

Is my text uploaded?

No. The cleaning happens in your browser, on your device.