textscrubr
Home / Blog / Hidden characters

How to Remove Non-Breaking Spaces From Text

Hidden characters2 min readUpdated 2026-06-23
To remove non-breaking spaces, paste your text into a cleaner that normalizes exotic spaces to regular ones. It converts the non-breaking space (U+00A0) and similar characters in one pass. In an editor, find-and-replace works if you search for the non-breaking space character specifically.

A non-breaking space looks exactly like a normal space but is a different character, and that difference causes a surprising amount of trouble. Here is how to clear them out.

What a non-breaking space is

A non-breaking space (Unicode U+00A0) is a space that prevents a line break at that point. It is used to keep things together, like a number and its unit. The problem is that it looks identical to a regular space (U+0020) on screen, so you cannot tell them apart by eye, but software treats them as completely different characters.

There is a whole family of these: the narrow no-break space, the ideographic space, the various typographic spaces. They all masquerade as ordinary spacing.

Why they cause problems

They are extremely common in text pasted from web pages, PDFs, and AI tools.

The quick fix: a cleaner

Paste your text into a tool that normalizes spaces and it converts the non-breaking space and its exotic relatives into regular spaces in one pass. textscrubr does this and then collapses any resulting double spaces, so you end up with clean, ordinary spacing. It also strips the truly invisible characters at the same time, since they usually travel together.

Find and replace

In an editor you can target it directly:

  1. Copy a non-breaking space from your text, or use your editor's option to search by character code (U+00A0).
  2. Replace it with a regular space.

If your editor supports it, enabling "show invisibles" or "show whitespace" can reveal where the non-breaking spaces are, since some editors display them with a distinct marker.

Prevent them coming back

Non-breaking spaces re-enter your text every time you paste from a styled source. If you paste from the web, documents, or chatbots regularly, running the text through a cleaner first turns this from a recurring mystery into a solved problem.

Scrub this text in one click

textscrubr strips the hidden characters, em dashes, and double spaces, and keeps your lists, headings, and code exactly where you put them. Free, and it runs entirely in your browser.

Clean my text free →

Frequently asked questions

What is a non-breaking space?

A non-breaking space (U+00A0) is a space that prevents a line break. It looks identical to a normal space but is a different character, which is why software treats it differently and it can cause hidden problems.

How do I tell a non-breaking space from a normal one?

Not by eye, they look the same. Use a cleaner that reports exotic spaces, or enable show-whitespace in your editor, which often marks non-breaking spaces distinctly.

How do I replace non-breaking spaces with normal spaces?

Paste the text into a cleaner that normalizes exotic spaces, which converts them in one pass. In an editor, search for the U+00A0 character and replace it with a regular space.