Invisible character reference · U+200B
Zero Width Space (U+200B)
A space that takes up no space. It renders as nothing, counts as a character, and quietly breaks string matching, validation, and code. Here's the plain-English guide — and a one-click remover.
By NoAtMark · Published Aug 13, 2026
The short version
| Property | Value |
|---|---|
| Name | Zero Width Space (ZWSP) |
| Code point | U+200B |
| UTF-8 bytes | E2 80 8B |
| Appearance | Invisible — takes up no space |
| Danger | Breaks matching, validation, and code |
Why it breaks things
Per the Unicode Standard, U+200B is a valid character intended to allow line breaking without a visible space. The problem is unintentional appearance: when it lands inside an identifier, a string, or a data field, it becomes a real byte that differs from what you expect.
- Code. Two strings that "look" identical aren't equal; a compiler or interpreter can reject a token containing an invisible byte. This is a common cause of "Uncaught SyntaxError: Invalid or unexpected token" and "unknown character" errors.
- Validation. Forms and validators count it as a character, so a "valid" input can fail length or pattern checks.
- Data. In CSV and JSON, it corrupts matching and imports. (See the data guide.)
- Tracking. Some systems embed zero-width characters as invisible fingerprints or trackers in copied text. Removing them clears that.
Where it comes from
Zero width spaces slip in through copy-paste from web pages, AI assistants, rich-text editors, chat apps, and PDFs — anywhere line-breaking or invisible layout is involved.
Remove it in one click
For whole files (TXT, DOCX, CSV, JSON), use the file cleaner — it handles all invisible characters at once.
Frequently asked questions
Is a zero width space the same as a normal space?
No. A normal space (U+0020) occupies width and is visible (as a gap). A zero width space takes up no space at all but still counts as a character.
How do I see zero width spaces?
They're invisible by definition. A hexdump shows E2 80 8B; a scanner (like the one above) is the practical way.
Could a zero width space be a tracking mark?
Yes. Zero-width characters are a known technique for embedding invisible fingerprints in text to identify copies or leaks. Removing them clears that signal.
References & further reading
- Unicode Standard — unicode.org
- Why invisible characters break code — noatmark.com/blog/invisible-characters-in-code
- Zero-width & invisible character remover — noatmark.com/zero-width-character