Remove extra spaces

Collapse repeated spaces, trim line ends and optionally remove blank lines.

Advertisement

0 characters
0 characters

Advertisement

About this tool

Text copied from PDFs, emails and web pages often has double spaces, tabs and stray gaps at the ends of lines. This tool turns runs of spaces and tabs into one space and trims the start and end of every line.

You can also remove empty lines, or join all the text into one line.

When to use it

Advertisement

Questions

Does it remove line breaks?

Not by default. Tick Join everything into one line if you want that.

Does it touch the words?

No. Only spaces, tabs and empty lines are changed.

What about non-breaking spaces?

They are treated as normal spaces and collapsed too.

More text tools

Case converters