How to Fix Double Spaces and Broken Formats in Microsoft Word
A quick trick to clean up copy-pasted text, strip weird line breaks, and eliminate double-spacing from Word and Google Docs.
Copied Text is Ruining Your Layout
If you are a student pulling quotes from an old PDF, or a professional copying data from an ancient corporate website into a new report, you know the pain.
You paste the text, and suddenly there are line breaks in the middle of sentences, bizarre tab indents, and two spaces after every period (the old typewriter standard). Manually deleting all this whitespace is tedious and maddening.
The Automated Cleanup
Instead of mashing the backspace key for ten minutes, use the CosmoxHub Whitespace Remover.
This tool uses advanced string manipulation and Regular Expressions to sanitize dirty text in a single click.
- Copy all the messed-up text from your PDF or website.
- Paste it into the Whitespace Remover.
- Click "Clean".
- The tool instantly collapses all double spaces into single spaces, removes weird carriage returns, and strips trailing spaces from the end of paragraphs.
- Copy the sanitized text and paste it into Word or Google Docs.
Your layout remains clean, and you save yourself hours of manual editing.


