removeaiwatermarkingGo Pro

What is a zero-width space?

By the Remove AI Watermarking team · Updated

Short answer: A zero-width space is an invisible Unicode character (U+200B) that takes up no space on screen. It tells software where a line may break, but when it ends up in copied text it silently breaks code, searches, passwords and word counts.

Key facts

How to spot one

Signs include a word that won't match in search, a cursor that needs two key presses to move past a spot, or code that throws an 'unexpected character' error on a line that looks fine.

How to remove it

Paste your text into the AI Text Cleaner. Every zero-width character is highlighted and removed. In code editors you can also search with the regular expression [\u200B-\u200D\u2060\uFEFF] and replace with nothing.

Try it free, right in your browser

Remove hidden characters

Questions

Is a zero-width space dangerous?+

Not by itself, but it can hide inside usernames, links or code and cause hard-to-find bugs.

Is it the same as a non-breaking space?+

No. A non-breaking space (U+00A0) is visible as a normal space but stops a line from breaking there.

Related