Removing extra spaces from a Word document cleans up formatting, prevents layout issues, and ensures professional appearance—especially important before printing or sharing. This guide covers manual and automated methods that work across Word for Microsoft 365, Word 2021, Word 2019, and newer versions on Windows and macOS. No extra tools or add-ins are needed.
What You'll Need
- Microsoft Word (any recent version)
- Your document with unwanted extra spaces
- Basic familiarity with Word’s Home tab and Find/Replace
Step-by-Step
- Open your document in Word. Save a backup copy first (File > Save As > choose a new name) in case you need to revert.
- Use Find and Replace to remove double (or more) spaces: Press Ctrl+H (Windows) or Command+H (macOS) to open the Find and Replace dialog. In the Find what field, type two spaces. In the Replace with field, type one space. Click Replace All. Confirm how many replacements were made, then click Close.
- Remove extra spaces at the start or end of paragraphs: In the same Find and Replace dialog, in Find what, type
^p(this represents a paragraph mark). In Replace with, type^pagain—but this time, go to More > Use wildcards and check that box. In Find what, enter^13[ ]@(this finds paragraph marks followed by one or more spaces). Leave Replace with blank, then click Replace All. - Remove extra line breaks (blank lines): In Find and Replace, enable Use wildcards again. In Find what, type
^13{2,}(two or more paragraph marks). In Replace with, type^13(a single paragraph mark). Click Replace All to condense multiple blank lines into one. - Check for accidental spaces inside text: Use Find alone (Ctrl+F or Command+F) to search for two spaces. Browse each instance manually with Find Next and decide whether to delete the extra space—sometimes a hyphenated word or intentional spacing is needed.
- Reveal formatting to verify: Press Ctrl+Shift+8 (Windows) or Command+8 (macOS) to show non-printing characters (like spaces as dots and paragraph marks as ¶). Visually scan for stray spaces before hiding them again with the same shortcut.
Common Mistakes
- Replacing all double spaces without checking context—this can break hyphenated words (e.g., "state-of-the-art" becomes "state-of-the-art" with a missing hyphen if spaces are removed incorrectly).
- Using wildcards without enabling the option—if Use wildcards is unchecked, patterns like
^13[ ]@won’t work. - Forgetting to replace spaces before paragraph marks—Word often adds trailing spaces when editing, which accumulate and cause ragged margins or inconsistent spacing.
- Overlooking section breaks—extra spaces can hide just before section breaks. Use Show/Hide (Ctrl+Shift+8) to inspect the area around break symbols (double vertical lines with "Section Break").
Tips
- Set Word to auto-correct double spaces going forward: Go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type. Check Replace as you type for "Double spaces with single space." This prevents future buildup.
- Use styles consistently—format paragraphs using built-in styles (Heading 1, Normal, etc.) instead of manual spacing. This reduces accidental extra spacing during editing.
- Run the Spelling & Grammar check (F7) after cleanup—it flags unusual spacing patterns and confirms text flow.
- Copy text to a plain text editor first if the document is extremely messy: Paste into Notepad (Windows) or TextEdit (macOS, in plain-text mode), review, then copy back to Word. This strips all formatting and leaves only text and paragraph marks.
Troubleshooting
If your extra spaces persist despite following the steps:
- Check for hidden fields or objects—press Ctrl+F9 to reveal fields (they appear in braces { }). Some fields add invisible spaces. Remove or edit them manually.
- Look for table cells with padding—tables often have extra space inside cells. Right-click a table > Table Properties > Cell > Options > uncheck "Same as the whole table" and set top/bottom padding to 0.
- Reset paragraph spacing—select the affected text, go to the Home tab > Paragraph group > click the small arrow in the bottom-right corner. Under Spacing, set Before and After to 0 pt, and Line spacing to Single. Click OK.
- Disable tracked changes temporarily—if Track Changes is on, spaces may appear in revision marks. Go to Review > Track Changes > Turn Off. Accept all changes (Review > Accept > Accept All Changes) before re-cleaning.
- Save as .docx and reopen—if the file originated from an older format (.doc), save it as a modern .docx file and reopen. Some legacy formatting quirks resolve after conversion.
- Create a new document and paste content—copy text (Ctrl+A > Ctrl+C), create a new blank document, then use Paste Special > Unformatted Text. This strips hidden spacing and styles.
Frequently Asked Questions
Why does Word keep adding extra spaces after I type?
Word’s default settings may include automatic double-space insertion after punctuation if you use two spaces (a legacy habit from typewriters). Go to File > Options > Proofing > AutoCorrect Options > AutoFormat As You Type and uncheck "Double spaces with single space" if you prefer one space—but if Word is adding spaces unexpectedly, it’s likely due to tracked changes or style inheritance. Turn off Track Changes and check your Normal.dotm template for custom styles.
Can I remove extra spaces using a macro?
Yes. A simple macro can automate the process. Press Alt+F11 to open the VBA editor, insert a new module (Insert > Module), and paste this code: Sub RemoveExtraSpaces()
With ActiveDocument.Content.Find
.Text = " "
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
End Sub. Run it with F5. Always backup your document first.
Why do spaces reappear after I delete them?
This usually happens if the text is inside a table, text box, or header/footer—elements with their own spacing rules. Check each container individually. Also, if styles are applied, they may force spacing on paste; use Ctrl+Space to clear direct formatting after pasting.
Does removing extra spaces affect document compatibility?
No. Removing extra spaces improves compatibility across Word versions and with PDF converters. It eliminates rendering inconsistencies, especially when printing to different printers or opening on macOS/iOS devices.
How do I prevent extra spaces when copying from web pages?
Always paste using Ctrl+Shift+V (or right-click > Keep Text Only) to strip web formatting. Then run the Find and Replace double-space fix. Alternatively, paste into a plain text editor first, review, and re-paste into Word.
Can I remove extra spaces in a protected document?
Only if you have editing permissions. If the document is restricted (Review > Protect Document), unprotect it first using the password. You cannot run Find/Replace on protected sections unless you remove protection or allow only comments/track changes.