Skip to content

Remove extra spaces

Remove double spaces, leading and trailing spaces, tabs, special spaces and invisible characters from any text in one click.

AvailableIn your browserInput: Text

How to use: Remove extra spaces

  1. Paste the text with extra spaces.
  2. Toggle each clean-up (double spaces, line ends, blank lines, tabs, special spaces, invisible characters).
  3. Copy the clean text.

What it accepts and what you get

Input
Any text.
Output
The normalised text and how many characters were removed.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • Words are not changed, only spacing.
  • Handy for text copied from PDFs or the web, which often carries non-breaking spaces or invisible characters.

Frequently asked questions

How do I remove double spaces from a text?

Paste the text and switch on the cleanups you want: double spaces, line ends, empty lines, tabs, special spaces and invisible characters.

Does it change the words in my text?

No, only the spaces. It helps clean text copied from PDFs or the web, and it shows how many characters were removed.

What are special or invisible spaces?

They are characters that look like a space or cannot be seen, such as the non-breaking space or the zero-width space. They often come from copying out of a PDF or a web page and cause trouble when searching or comparing text.

Does it also remove line breaks?

Only the surplus empty lines if you turn that option on. Normal line breaks between paragraphs are kept.

When to use it

  • When text copied from a PDF or website has double or odd spaces.
  • To clean invisible characters that cause trouble when pasting.
  • When a text pasted into a form or a spreadsheet does not match because of spaces you cannot see.

Examples

Text from a PDF
Paste the text and turn on double spaces, line ends and invisible characters; you will see how many characters were removed.
Special spaces
Turn on cleaning special spaces for the non-breaking ones.
A name with a hidden space
“Ana López” with a non-breaking space does not match a normal “Ana López”; after cleaning, both match.

Common mistakes

  • Expecting it to change words: only spacing is touched.
  • Turning everything on without looking: check whether you needed to keep line breaks.
  • Cleaning a text with tables made of spaces: removing doubles makes the columns stop lining up.

Suggested next steps