Skip to content
toolgrid

No tool found. Try another word.

Remove Extra Spaces

Remove double spaces, tabs and spaces at the start and end of lines in one go. Paste your text and get a clean copy instantly.

characters removed

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the Remove Extra Spaces

  1. 1 Paste the text with the extra spaces into the left box.
  2. 2 Choose what to clean up: double spaces, spaces at line edges, tabs or blank lines.
  3. 3 Copy or download the cleaned text from the right box.

About the Remove Extra Spaces

Text copied from PDFs, emails, websites or spreadsheets often contains double spaces, tabs and invisible spaces at the end of lines. This tool removes them in one step, so the text is ready to paste into a document, a CMS, code or a form.

By default it replaces every run of spaces with a single space, removes spaces and tabs at the start and end of each line, and turns tabs into spaces. Non-breaking spaces and other Unicode spaces are cleaned up too. Line breaks are kept, so paragraphs and lists keep their structure; tick "Remove blank lines" to also delete empty lines.

Under the result you see how many characters were removed. Everything happens in your browser while you type, so you can switch options and compare the result straight away.

Frequently asked questions

Does this remove line breaks too?

No, line breaks are kept. Only spaces and tabs within and around lines are cleaned up. To remove empty lines, tick "Remove blank lines"; to join all lines into one, use the Line Break Remover.

What counts as an extra space?

Two or more spaces (or tabs) in a row, and spaces at the start or end of a line. A single space between words is never removed.

Are non-breaking spaces removed as well?

Yes. Non-breaking spaces and other Unicode space characters, which are common in text copied from websites and Word, are treated like normal spaces.

Can I keep the indentation of my text?

Yes. Untick "Trim spaces at line start and end" and the spaces at the start of each line stay, while double spaces inside the lines are still collapsed.