Preventing the Insertion of Non-Breaking Spaces

by Allen Wyatt
(last updated November 27, 2021)


When Ray copies text into a Word document or even among Word documents, often some of the spaces are changed to non-breaking spaces, seemingly at random. These are visible on the screen as small open circles when non-printing characters are displayed, but they are otherwise undetectable. Ray wonders how he can avoid or prevent this random conversion to non-breaking spaces.

Typically this happens when copying information that originated on the Internet. That's because in formatting text for display on a web page, content creators will use non-breaking spaces to separate many words. When you paste that content into a Word document (or copy it from a Word document in which it was previously pasted), they remain in the text, as Ray discovered.

If you want to not have these appear in your document, one easy way is to paste the content as plain text. (Easiest way: Click the down-arrow next to the Paste tool on the Home tab of the ribbon and choose the Keep Text Only option.) This will get rid of the non-breaking spaces, replacing them with regular spaces, but it will also get rid of any formatting in whatever you are pasting.

If you want to get rid of non-breaking spaces already in the document, then using Find and Replace is the easiest way:

  1. Press Ctrl+H. Word displays the Replace tab of the Find and Replace dialog box.
  2. In the Find What box, enter a single space.
  3. In the Replace With box, enter a single space. (Yes, this means you are replacing spaces with spaces.)
  4. Click on Replace All.
  5. Close the Find and Replace dialog box.

Note in step 2 that you are specifying you want to search for spaces. This works because Word considers a non-breaking space the same as a regular space when doing its matching. If you prefer to just search for non-breaking spaces, you can, in step 2, type Ctrl+Shift+Spacebar, which inserts a non-breaking space character (^s) in the Find What box.

If you prefer a macro-based solution, you can use this one:

Sub ReplaceNBS()
    With Selection.Find
        .Text = "^s"
        .Replacement.Text = " "
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

The macro automates the Find and Replace technique already described, replacing all non-breaking spaces with regular spaces. Assign it to a shortcut key or the Quick Access Toolbar, and you can quickly do the desired replacements.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11904) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Changing a Heading to Body Text

When working on an outline of your document, you may want to demote a heading so that it is treated just like your body ...

Discover More

Displaying a Hidden First Row

If you hide the first rows of a worksheet, you may have a hard time getting those rows visible again. Here's a simple way ...

Discover More

Shortcut for Show/Hide

Hate to take your hands off the keyboard? Here's a handy keyboard shortcut you can use to display (or not display) the ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Processing Information Pasted from a PDF File

When pasting information copied from a PDF file, you can end up with a paragraph for each line of the original document. ...

Discover More

Using Optional Hyphens

Adding hyphens to your document can affect the way in which Word wraps text from one line to the next. Optional hyphens, ...

Discover More

Selecting the Entire Document with the Mouse

Want a quick way to select your entire document without taking your hand off the mouse? Try clicking away using the ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is seven less than 7?

2021-11-30 11:49:16

Ellen Wynkoop

Woohoo! That's a good one. I use the find/replace feature regularly, but I never knew that searching for a single space, and replacing it with the same, would remove the non-breaking spaces. That made my day, Allen. Thanks. No more bubbles!

This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.


FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.