sodcalculator

10 Tech How-To

Find and Delete Extra Spaces in Microsoft Word

Guide 10-42499 · Updated · Step by step

Extra spaces in a Word document are usually invisible, so they hide in plain sight and create uneven spacing, alignment problems, and messy formatting. This guide shows you how to reveal every space with the Show/Hide feature, then remove double, triple, or trailing spaces using Word’s built-in Find and Replace tool — no manual deleting required.

What You’ll Need

  • Microsoft Word (2016, 2019, 2021, or Microsoft 365 — the steps are the same on Windows and Mac)
  • The document with the extra spaces you want to clean up

Step-by-Step

  1. Open the document in Microsoft Word. Make a backup copy first (File > Save As) so you can revert if something goes wrong.
  2. Turn on formatting marks. Click the (pilcrow) icon in the Home tab’s Paragraph group, or press Ctrl+Shift+8 (Windows) or Cmd+8 (Mac). Every space now appears as a small dot (·), tabs as arrows (→), and paragraph breaks as ¶. This makes extra spaces visible at a glance.
  3. Open Find and Replace. Press Ctrl+H (Windows) or Cmd+H (Mac). The Find and Replace dialog opens with the Replace tab active.
  4. Replace double spaces with single spaces. In the Find what field, press the spacebar twice. In the Replace with field, press the spacebar once. Click Replace All.
  5. Repeat the replacement. Word will tell you how many replacements it made. Click Replace All again. Keep clicking until Word reports 0 replacements. This catches triple, quadruple, and longer runs of spaces because each pass collapses them by one.
  6. Remove spaces at the start of lines (optional). If you want to strip leading spaces (spaces before the first word of a paragraph), use Find what: ^p (caret p followed by a space) and Replace with: ^p. This removes one space after every paragraph mark. Repeat until zero replacements. Be careful: this also removes intentional indentation done with spaces — use it only if you are sure you want that.
  7. Remove trailing spaces (optional). Use Find what: ^p (space followed by caret p) and Replace with: ^p. This removes spaces before a paragraph break. Repeat until zero replacements.
  8. Remove tabs used as spacing (optional). If your document uses tabs where spaces should be, replace ^t (tab) with a single space, or with nothing if you want to remove them entirely.
  9. Check the results. Turn off formatting marks by clicking the ¶ icon again or pressing Ctrl+Shift+8. Scroll through the document to confirm spacing looks correct.
  10. Save the document. If everything looks good, save. If not, close without saving and reopen your backup.

Common Mistakes

  • Replacing only once. If you run Replace All for double spaces just once, triple spaces become double and remain. You must repeat until Word says 0 replacements.
  • Using Find and Replace on the whole document when you only want a section. Select the text first — Find and Replace then works only within the selection.
  • Removing spaces that are intentional. Centered or right-aligned text sometimes uses spaces for alignment. Review the document after cleaning.
  • Forgetting about non-breaking spaces. Word uses a special character (Ctrl+Shift+Space) that looks like a space but is not matched by a regular space in Find and Replace. These appear as small circles (°). To remove them, copy one from the document and paste it into the Find what field.
  • Replacing tabs with spaces when you meant to keep the tab structure. Tabs are often used for tables or indents; replacing them all can break formatting.

Tips

  • Use the wildcard option for precision. In Find and Replace, click More >>, tick Use wildcards, then use Find what: [ ]{2,} (square brackets with a space, then {2,}) and Replace with: a single space. This finds runs of 2 or more spaces in one pass, making the process faster than repeated Replace All.
  • Always work on a copy. Formatting changes are hard to undo perfectly, especially with repeated replacements.
  • Use the keyboard shortcut to toggle formatting marks. Ctrl+Shift+8 is faster than clicking the icon.
  • Clean up before final formatting. Removing extra spaces after you’ve applied styles or alignment can shift everything; do it first.
  • Check for spaces in tables. Extra spaces inside table cells are easy to miss. Select the whole table before running Find and Replace.

Troubleshooting

  • Find and Replace doesn’t find anything. Make sure the Find what field actually contains spaces — press the spacebar once or twice, not zero times. Also check that Use wildcards is off when you’re doing the simple double-space replacement.
  • Word finds spaces but won’t replace them. This can happen if the text is in a protected section or a content control. Go to Review > Restrict Editing and stop protection if it’s on. Also, if the document is in compatibility mode, save it as a .docx file first.
  • The pilcrow (¶) icon doesn’t show spaces. The icon toggles all formatting marks. If dots don’t appear, check that the option is enabled: File > Options > Display > tick Spaces under Always show these formatting marks on the screen.
  • After replacing, the document looks worse. Undo with Ctrl+Z until you’re back to the original, or close without saving and reopen the backup.
  • Non-breaking spaces remain. As mentioned, these are a different character. Copy one from the document (it appears as °), paste it into Find what, and leave Replace with empty, then Replace All.
  • Spaces in headers, footers, or footnotes aren’t cleaned. Find and Replace works on the main body by default. To clean those, double-click into the header/footer or open the footnote pane, then run the replacement there.

Frequently Asked Questions

Q: Will Find and Replace remove all spaces in my document?
A: No. It only removes the specific pattern you enter. If you search for double spaces and replace with single, it leaves single spaces alone. It will not remove spaces between words unless you tell it to.

Q: How do I remove spaces at the beginning of every line?
A: Use Find what: ^p (paragraph mark followed by a space) and Replace with: ^p. Repeat until zero replacements. This removes one space after each paragraph break.

Q: What is the difference between a regular space and a non-breaking space?
A: A regular space (code 32) allows a line to break there. A non-breaking space (Ctrl+Shift+Space) keeps words together and looks like a small circle when formatting marks are on. Find and Replace treats them as different characters.

Q: Can I remove extra spaces in a specific part of the document only?
A: Yes. Select the text first, then open Find and Replace. Word automatically restricts the search to the selection if you confirm the prompt that appears.

Q: Why does Word keep finding more spaces after I click Replace All?
A: Because each pass reduces the number of spaces by one. For example, five spaces become four, then three, then two, then one. You need to repeat until Word reports 0 replacements.

Q: Does this work in Google Docs too?
A: The steps are similar, but the shortcuts differ. In Google Docs, use Edit > Find and Replace (Ctrl+H) and repeat the double-space replacement the same way. The pilcrow icon is under View > Show non-printing characters.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →