Preventing the Insertion of Non-Breaking Spaces (2023)

Preventing the Insertion of Non-Breaking Spaces (1)

Written by Allen Wyatt (last updated November 27, 2021)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


(Video) Insert a Non-breaking Space in a Word Document

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() Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting 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:=wdReplaceAllEnd 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.

(Video) Use Non-breaking Spaces and Non-breaking Hyphens for Proper Names in Word

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. Learn more about Allen...

(Video) How to Insert Nonbreaking Spaces in Microsoft Word

Putting Bold Words in an Index

There are several ways you can create an index in Word, but the first step is always to figure out what should go in the...

Discover More

Modifying How Windows Notifies You of Impending Changes

Part of the security system built into Windows involves notifying you when changes are about to occur to your system....

Discover More

(Video) Keep Text Together using Nonbreaking Spaces

Underlining a Number in a Numbered List

Word allows you to format the numbers that appear in a numbered list, but what if you want to underline only a single...

Discover More


1. MICROSOFT WORD: Insert Non-Breaking Space Training Tips
(NextGen Companies)
2. Insert a Non-breaking Hyphen in Word
3. Non-Breaking or Hard Spaces Word 2013 PC
4. Insert a Nonbreaking Space in InDesign
(Michael Bullo)
5. How to Insert Non-Breaking Hyphen or Dash in Word
(Vishap TVplus)
6. How to Create a Nonbreaking Space in Microsoft Word : Microsoft Office Help


Top Articles
Latest Posts
Article information

Author: Domingo Moore

Last Updated: 01/31/2023

Views: 5291

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Domingo Moore

Birthday: 1997-05-20

Address: 6485 Kohler Route, Antonioton, VT 77375-0299

Phone: +3213869077934

Job: Sales Analyst

Hobby: Kayaking, Roller skating, Cabaret, Rugby, Homebrewing, Creative writing, amateur radio

Introduction: My name is Domingo Moore, I am a attractive, gorgeous, funny, jolly, spotless, nice, fantastic person who loves writing and wants to share my knowledge and understanding with you.