Remove Extra Spaces

Collapse multiple spaces and tabs into a single space and trim the ends of every line, while keeping your line breaks exactly as they are. Good after a PDF copy.

Removing extra spaces cleans up text that picked up padding from a copy and paste, a PDF extraction, or a spreadsheet column. It changes spacing only, so words, punctuation, and line breaks are untouched.

Output

                

Paste or type something above.

Questions about remove extra spaces

Does it remove line breaks?
No, line structure is preserved. Use the line break remover when you want everything on one line.
Why does the count differ between runs?
The count is how many whitespace characters were removed, so it changes as you edit the text.
Is it safe for code?
Only for prose. Indentation in code is significant, so removing it will change what the code means.