What it was designed for
Joining letter forms in Arabic and Indic scripts, and building multi-person emoji sequences. Unicode assigns it to the General Punctuation block and to General Category Cf, which is Format.
In practice U+200D is the character that binds emoji sequences together, so removing it breaks them.
Does U+200D work as invisible text?
Yes, in both name fields and message bodies. Zero Width Joiner has the Unicode property White_Space=No, so trim() does not remove it and the regex class \s does not match it.
NFKC leaves it unchanged, so a platform that normalizes input before storing it keeps the exact codepoint you pasted. That combination — surviving both the trim and the normalization — is what makes a character dependable rather than occasionally lucky.
How it compares to the alternatives
Four properties decide which invisible character to use, and they separate these three cleanly. Zero Width Joiner is shown against the plain space and against the character most often recommended for blank names.
| Property | U+200D | U+0020 | U+3164 |
|---|---|---|---|
| Category | Cf | Zs | Lo |
| Removed by trim() | No | Yes | No |
| NFKC | stable | stable | → U+1160 |
| Rendered width | Zero width | Narrow | Wide |
| UTF-8 bytes | 3 | 1 | 3 |
| Works in a name field | Yes | No | No |
Zero Width Joiner matches the reference character on both decisive properties, which is why it works where a space fails.
How to type U+200D
To insert U+200D, copy it from the button above. Copying is the only method that behaves identically on every operating system and in every application.
Copy and paste
Use the copy button at the top of this page. Paste into the destination field directly. If the field rejects it, paste into a plain-text editor first and copy from there — rich-text editors and some mobile keyboards rewrite pasted content.
In code
Insert it by escape sequence rather than by pasting a character no reviewer can see. A literal invisible character in a source file is unreadable in review and survives copy-paste into places it was never meant to reach.
- JavaScript and TypeScript —
"\u200D" - Python —
"\u200D" - HTML —
‍or‍or‍ - CSS
content—"\200D" - URL encoding —
%E2%80%8D
Keyboard entry
Keyboard methods exist and none is reliable across systems. On Linux and in most GTK applications, Ctrl+Shift+U followed by 200d and Enter inserts the character. On macOS, the Unicode Hex Input source acceptsOption plus the four hex digits, and it must be enabled in Keyboard settings first.
Windows Alt codes do not cover this range. The Alt plus numeric-keypad method addresses legacy code pages rather than Unicode codepoints, so it cannot produce U+200D. Copying remains the dependable method on every platform.
How many fit in a field
As many as the field's limit allows, because each one counts as a full character. An invisible character is not free — it consumes the same budget as a letter.
It costs 3 bytes in UTF-8, against 1 byte for a plain space. Fields enforce either a character limit or a byte limit, and the two give very different answers. A 20-character gamertag holds 20 of them. A 20-byte field holds 6.
Platforms rarely state which limit they enforce. A field that accepts 20 letters and rejects 20 invisible characters is counting bytes, so divide the stated limit by 3 to find the real ceiling.
Why U+200D fails, and what to do
It fails when a field measures rendered width rather than string length, because this character draws nothing. Everything else about the character is stable, so a failure almost always traces to that one condition.
The field clears itself after saving. The value was trimmed to an empty string and the platform restored the previous one. Move to a character withWhite_Space=No, which this one already has.
A box or question mark appears. The font has no glyph at U+200D, so the renderer drew .notdef. The stored value is correct and only the display is wrong. U+2800 has the widest font coverage of the invisible characters.
The value changes between saving and reloading. The platform normalized it. NFKC leaves Zero Width Joiner unchanged, so the cause is a platform-specific substitution rather than normalization.
It works on desktop and fails in a mobile app. The two clients validate separately, and some mobile keyboards strip invisible characters on paste. Paste into a plain-text notes app first, then copy from there.
Is it a security risk?
Yes, in source code and identifiers, and no in ordinary text. U+200D joins codepoints into single glyphs, so a filter counting characters sees a different length than a user sees. Stripping it also breaks multi-person emoji.
The exposure is limited to contexts where an invisible character changes meaning without changing appearance. Pasting U+200D into a username, a bio or a chat message creates no such risk, because nothing downstream interprets it.
To audit text you did not write, match the category with\p{Cf} rather than searching for this codepoint alone.
Where it is used
It is used wherever a field must not be empty but should look empty. Platform behaviour differs enough that each category has its own guide.
- Gaming — in-game names across 9 platforms
- Social media — display names across 10 apps
- Messaging — blank messages across 5 apps
How to find it in existing text
Match it by category rather than by codepoint. The regex\p{Cf} matches Zero Width Joiner and every other character in its category, and it keeps working across Unicode releases.
To confirm whether a specific string contains it, paste the string into the invisible text detector, which lists every codepoint with its category and byte length.