Skip to main content

Fix Formatting

Remove & Convert Non-Breaking Spaces (NBSP)

CleanPastedText editorial · Updated

Text workbench

Try it on your text

Cleaning mode

Removes hidden characters and standardizes AI-style punctuation.

Try a real example

Each sample contains a problem you cannot see.

Original

Pasted text

0 chars · 0 words

Cleaned

Ready to copy

0 changes

Text stays in this browser

Same words · No AI rewriting · No content logging

NBSP vs. standard space: why it breaks your layout

A non-breaking space (NBSP, U+00A0) looks exactly like a normal space but behaves like a letter. Its job is to prevent an automatic line break at its position. That's useful for keeping units together ("10 kg"), but an entire paragraph full of them creates an "unbreakable" block of text.

When you paste text from a website, it's often riddled with NBSPs — in HTML they're written as the   entity and used liberally for layout. Because the computer treats the whole paragraph as one giant "word" (there are no breaking spaces left), it pushes the entire block to a new line or creates a massive horizontal scrollbar.

Batch convert NBSP to standard spaces

Manually finding and replacing non-breaking spaces is nearly impossible because they are indistinguishable from normal spaces on screen. Our tool identifies the U+00A0 code point and replaces it with the standard U+0020 space character — instantly, across the whole text.

Once converted, your editor can properly calculate where to wrap lines, fixing "huge gaps" and "weird layout breaks" on the spot. If your spacing problems go beyond NBSPs, the broader weird spacing fixer covers line endings and trailing whitespace too.

The NBSP's hidden cousins: U+202F and friends

Unicode defines several no-break spaces beyond U+00A0. The most important is the narrow no-break space (U+202F) — a thinner version used in French typography that drew attention in April 2025, when the startup Rumi reported finding it sprinkled through the output of OpenAI's then-new o3 and o4-mini models. OpenAI's answer was that the characters were "a quirk of large-scale reinforcement learning" and not a watermark; they were gone from output within days. There's also the word joiner (U+2060), a zero-width no-break character. All of them are converted or removed by this cleaner. The U+202F episode is covered in full — including what OpenAI actually said about it — on the page about removing ChatGPT watermark characters. To see which of these characters AI tools actually emit, check the hidden characters in ChatGPT text, and for everything else hiding in copied text, run the invisible character remover.

Common questions

Frequently asked questions

What is a non-breaking space (NBSP)?

It is Unicode character U+00A0 (written   in HTML): a space that looks identical to a normal one but tells the layout engine it may not break the line there. It exists to keep pairs like '10 kg' or 'page 7' together. When entire paragraphs are riddled with NBSPs — common in text copied from websites and Word — the text becomes one unbreakable block.

How do I remove non-breaking spaces from text?

Paste the text into a cleaner that targets U+00A0, like CleanPastedText. It finds every non-breaking space and replaces it with a standard U+0020 space, and does the same for related characters such as the narrow no-break space (U+202F). Finding them by hand is impractical because an NBSP is visually indistinguishable from a regular space.

Why won't my pasted text wrap correctly?

Because line wrapping only happens at breaking spaces. If the spaces in your paragraph are non-breaking (U+00A0), the layout engine treats long runs of words as a single giant word: it pushes the block to a new line, overflows the margin, or creates a horizontal scrollbar. Converting the NBSPs to normal spaces restores natural wrapping immediately.

How do I see non-breaking spaces in Word or Google Docs?

In Microsoft Word, turn on formatting marks (the pilcrow button, or Ctrl+Shift+8): regular spaces show as dots and non-breaking spaces as small degree-like circles. Google Docs has no equivalent view, which is why NBSP problems there feel so mysterious — pasting the text into a checker that counts U+00A0 occurrences is the fastest diagnosis.

Is a narrow no-break space the same as an NBSP?

No. The narrow no-break space (U+202F) is a thinner sibling of U+00A0, used in French punctuation spacing and best known outside typography for a brief April 2025 episode: the startup Rumi reported that OpenAI's new o3 and o4-mini models were putting U+202F where ordinary spaces belong. OpenAI called it 'a quirk of large-scale reinforcement learning' rather than a watermark, and it stopped within days. Both characters forbid line breaks, and both are converted to normal spaces by this cleaner.

Continue reading

Related guides & tools