Zero Width Space Character
Copy Zero Width Space (U+200B) and related invisible Unicode characters. Technical reference for developers and text formatting.
Copy Zero Width Characters
Zero Width Space
U+200BHTML:
​CSS:
\200BZero Width Joiner
U+200DHTML:
‍CSS:
\200DZero Width Non-Joiner
U+200CHTML:
‌CSS:
\200CZero Width No-Break Space
U+FEFFHTML:
CSS:
\FEFFWord Joiner
U+2060HTML:
⁠CSS:
\2060Zero Width Character Reference
| Character | Unicode | JavaScript | Purpose |
|---|---|---|---|
| Zero Width Space | U+200B | \u200B | Line break opportunity |
| Zero Width Joiner | U+200D | \u200D | Join characters (emojis) |
| Zero Width Non-Joiner | U+200C | \u200C | Prevent ligatures |
| Word Joiner | U+2060 | \u2060 | Prevent line breaks |
| Zero Width No-Break Space | U+FEFF | \uFEFF | BOM / no-break |
Zero Width Character Detector
Paste text to detect hidden zero-width characters:
Length: 0|Zero-width found: None
Code Examples
JavaScript - Remove Zero Width Characters
const cleanText = text.replace(/[\u200B-\u200D\uFEFF\u2060]/g, '');JavaScript - Detect Zero Width Characters
const hasZeroWidth = /[\u200B-\u200D\uFEFF\u2060]/.test(text);HTML - Insert Zero Width Space
<span>Long​Word​That​Can​Break</span>CSS - Use Word Joiner
.no-break::after { content: "\2060"; }Common Uses for Zero Width Space
- 1.Word breaking: Insert ZWS to allow long words or URLs to break at specific points without visible hyphens.
- 2.Text watermarking: Embed invisible characters to track document copying (steganography).
- 3.Emoji sequences: Zero Width Joiner combines emojis into compound emojis (👨👩👧 is made with ZWJ).
- 4.Preventing ligatures: ZWNJ stops automatic ligature formation in fonts that support it.
- 5.Testing: Verify that your application correctly handles invisible characters in user input.