AI CleaningAIText
Published · Updated · 7 min read

Complete Guide to Zero-Width Unicode Characters & ASCII Smuggling

Understand U+200B, U+200C, U+200D, U+FEFF, Bidi overrides, and Unicode Tag characters (U+E0000-U+E007F) used in invisible text watermarks.

Quick Answer / Key Takeaway

Zero-width Unicode characters (like U+200B, U+200C, U+200D, and U+FEFF) occupy zero visual pixels while remaining present in the underlying UTF-8 bytes. Meanwhile, Unicode Tag characters (U+E0000-U+E007F) enable invisible ASCII smuggling. Use a Unicode X-Ray inspector to detect, decode, and strip them locally.

Why Invisible Unicode Characters Exist in the First Place

Zero-width characters were not invented for watermarking or mischief—they solve real typographic problems in world scripts. For instance, Persian and Arabic use the Zero-Width Non-Joiner (U+200C) to separate word prefixes, while emoji sequences rely on the Zero-Width Joiner (U+200D) to combine multiple icons into a single family or profession emoji.

Problems arise when these characters leak into English prose, source code, URLs, or database fields—either accidentally via rich-text copy-paste or intentionally as invisible tracking watermarks.

Reference Breakdown: Zero-Width, Bidi & Tag Blocks

  • U+200B (Zero-Width Space): Breaks string equality checks, regexes, and URLs without any visual clue. Clean it with our Zero-Width Space Remover.
  • U+FEFF (Byte Order Mark): Originally for UTF-16 endianness, it still appears at the start of UTF-8 exports and breaks JSON/CSV parsers.
  • U+00AD (Soft Hyphen): Invisible unless a word wraps at a line edge, making it notorious for breaking keyword searches.
  • U+202A–U+202E & U+2066–U+2069 (Bidi Overrides): Controls left-to-right vs. right-to-left rendering. Abused in Trojan Source attacks to disguise malicious code.
  • U+E0000–U+E007F (Unicode Tags): Deprecated language tags now used in ASCII smuggling to embed hidden LLM prompt injections inside normal text.

How CleaningAIText’s ASCII-Smuggling Decoder Works

Because Unicode Tag characters sit in Plane 14 (above 0xFFFF), naive JavaScript charCodeAt() loops split them into surrogate pairs and miss them. Our engine uses full-codepoint iteration (codePointAt(0)) to detect every character in the 0xE0000–0xE007F range.

Whenever a tag character is found, our decoder subtracts 0xE0000 to reconstruct the hidden ASCII message and immediately displays a red warning banner above the editor—giving you full visibility before you strip the payload.

Want to test it yourself? Open the Invisible Character Detector or Homoglyph Detector and click Load Sample AI Text.

Try Our Free Client-Side Cleaning Tools

Frequently Asked Questions

What is the difference between U+200B, U+200C, and U+200D?

U+200B (ZWSP) marks a potential line-break without visible space, U+200C (ZWNJ) prevents two adjacent characters from forming a ligature, and U+200D (ZWJ) forces adjacent characters or emojis to join together.

How do Unicode Tag characters (U+E0000-U+E007F) work in ASCII smuggling?

Each printable ASCII character (0x20 to 0x7E) is mapped by adding 0xE0000 to its codepoint. Modern browsers render these Tag characters invisibly, allowing hidden text to be smuggled inside normal-looking strings.

How can I decode or remove Unicode Tags?

Paste the text into any CleaningAIText tool. Our ASCII-Smuggling Decoder automatically detects U+E0000-U+E007F characters, decodes them into a warning banner, and lets you strip them in one click.