Remove Extra Spaces
Collapse runs of double spaces, strip stray tabs and trim the invisible whitespace hanging off the end of every line.
How it works
A compact workflow from input to download.
Paste your text
Paste text that has picked up messy spacing — usually from a PDF, an email, or a justified layout.
Clean it
Runs of two or more spaces or tabs collapse to a single space, and leading and trailing whitespace is trimmed from every line.
Copy the result
Copy the cleaned text out, ready to paste somewhere that cares about being tidy.
Frequently asked questions
Exactly what gets cleaned?
Why does pasted text so often have strange spacing?
Does it remove line breaks as well?
Is my text sent to a server?
Whitespace you cannot see but software can
Extra whitespace is invisible to you and highly visible to machines, which is what makes it quietly damaging. A trailing space at the end of a line will make an exact-match comparison fail, so a spreadsheet lookup returns nothing and you spend twenty minutes convinced the data is missing. Duplicate rows fail to deduplicate because one has a stray tab. A CSV import creates a category called 'Books ' that sits stubbornly apart from 'Books'. In code and configuration files, inconsistent tabs and spaces break indentation-sensitive languages outright. In a CMS, doubled spaces survive into the published page and produce visibly uneven gaps between sentences. None of it is visible while you work, and all of it is trivially avoidable by cleaning the text before it enters a system that cares.
The two-space sentence habit
If your text is full of double spaces after full stops, there is a good chance it was typed by someone taught on a typewriter. Monospaced typewriter faces gave every character identical width, which made sentence boundaries hard to spot, so typists were trained to hit the space bar twice. Proportional digital fonts already build the correct amount of space into the full stop, so the second space is not merely unnecessary — it creates visible rivers of white running down a justified column and looks wrong to a typographer's eye. Every modern style guide now specifies a single space, and Microsoft Word began flagging the double space as an error in 2020. Collapsing them is the fastest way to bring inherited text into line.
Related tools
Continue the workflow with adjacent tools.