Remove Extra Spaces

Text copied from a PDF, email or website often comes with double spaces, broken lines and empty lines. Clean it up in one step.

Result

Characters removed —

How to use

  1. Paste your text.
  2. Choose what to clean using the options.
  3. Copy the cleaned text from the result box.

How it works

Tabs and repeated spaces become a single space. With "Join all lines" on, line breaks inside the text are replaced by spaces.

Tips and common uses

Text copied from a PDF

PDFs often break every line, so pasted text has a line break after each row. Turn on "Join all lines" to get one smooth paragraph.

Before using text in forms and sheets

Extra spaces at the start or end of a name or ID can make a form reject it or a spreadsheet lookup fail. The option to remove spaces at the start and end of lines removes them.

Clean empty lines in lists

When a list has blank lines between items, tick "Remove empty lines" to get a compact list you can paste into Excel, a chat or a document.

Frequently asked questions

Why does text from a PDF have broken lines?

PDFs store each printed line separately, so copying adds a line break at the end of every line. Turn on "Join all lines" to fix it.

Will it change my words?

No. Only spaces, tabs and line breaks are changed.

Is my text safe?

Yes. Everything happens in your browser and nothing is uploaded.

More tools