textscrubr
Home / Blog / Hidden characters

What Is a Zero-Width Space (and How to Remove It)

Hidden characters2 min readUpdated 2026-10-25
A zero-width space (U+200B) is an invisible Unicode character that takes up no space but still exists in your text. It appears in pasted and AI-generated content and can break code, search, and data. To remove it, run the text through a cleaner that targets zero-width characters by code point.

A zero-width space is one of those characters that does nothing visible and causes outsized trouble. Here is what it is and how to deal with it.

What it is

The zero-width space, Unicode code point U+200B, is a character with no width. It was designed to mark where a word could break across a line without showing a visible space. Because it renders as nothing, you cannot see it, but it is genuinely there, occupying a position in the text like any other character.

It has invisible relatives: the zero-width joiner (U+200D), the zero-width non-joiner (U+200C), and the word joiner (U+2060). They all do subtle text-shaping jobs and all hide in plain sight.

Why it ends up in your text

Why it is a problem

Because software sees it even though you do not:

How to remove a zero-width space

You cannot click on it or backspace it reliably, because there is nothing visible to target. The dependable method is a cleaner that removes it by its code point. Paste your text into textscrubr and Inspect lists every U+200B and its invisible siblings with their positions. Clean removes them in one pass, except where a zero-width space marks word boundaries in Thai, Lao, Khmer or Myanmar text. It keeps the zero-width joiners that real emoji need, so your emoji do not break.

Prevent it from coming back

If you regularly paste from chatbots, web pages, or documents, make cleaning a habit before the text lands anywhere that matters. It takes seconds and removes a whole class of bugs you would otherwise never see coming.

See what is hidden in your text

textscrubr shows every invisible character, removes the ones with no job, and keeps your lists, headings, links and code intact. Em dash cleanup is one optional toggle. Free, and it runs entirely in your browser.

Inspect and clean my text free →

Work inside Claude or ChatGPT? The same engine is available there for a one-time $29.

Frequently asked questions

What does a zero-width space look like?

Nothing. It is invisible by design and takes up no width, which is exactly why it is hard to find and remove without a tool that targets it by its Unicode code point, U+200B.

Is a zero-width space the same as a normal space?

No. A normal space (U+0020) is visible and has width. A zero-width space has no width and is invisible, but software still treats it as a real character, which is what causes bugs.

How do I remove zero-width spaces from my text?

Paste the text into a cleaner that targets zero-width characters by code point. Manual deletion is unreliable because you cannot see or select the character.