How to use Remove Extra Spaces
- Paste the text you want to clean.
- Leave trim-lines ticked to remove leading and trailing whitespace on every line.
- Press the button and copy the cleaned text.
- Runs of two or more spaces become one; single spaces are left as they are.
- Line breaks and blank lines are preserved.
- A non-breaking space copied from a web page looks like a space but is a different character and is not collapsed — use find and replace for those.
Where the extra spaces come from
Copying out of a PDF is the usual culprit: PDFs position glyphs rather than storing words, so extraction tools insert spaces to approximate the gaps, and justified text produces several where there should be one. Spreadsheet cells accumulate trailing spaces from manual entry. Word processors leave double spaces after full stops — a typewriter convention that modern typesetting handles automatically and that now just looks like an error. Copying out of a chat or email client adds leading indentation from quoting.
Why it matters beyond tidiness
Trailing whitespace breaks exact comparisons silently: two lines that look identical do not match, deduplication misses copies, a spreadsheet lookup returns nothing, and a login fails because the username carries a space you cannot see. It also breaks CSV imports and makes diffs noisy. Cleaning whitespace before any comparison, import or deduplication step saves the ten minutes you would otherwise spend wondering why two identical things are not equal.
What it leaves alone
Single spaces between words are untouched, and line breaks are preserved — your paragraph structure survives. Tabs are not collapsed into spaces, since in code and in tab-separated data they are significant. Blank lines are kept as blank lines. If you need to collapse line breaks as well, or convert tabs, use the find and replace tool with a regular expression.
Frequently asked questions
What counts as extra spaces?
Does this affect line breaks?
Can I also trim each line?
Will it remove my line breaks or paragraph spacing?
Why are some double spaces still there afterwards?
Does it fix double spaces after a full stop?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.