Skip to main content

    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+200B
    HTML: ​
    CSS: \200B

    Zero Width Joiner

    U+200D
    HTML: ‍
    CSS: \200D

    Zero Width Non-Joiner

    U+200C
    HTML: ‌
    CSS: \200C

    Zero Width No-Break Space

    U+FEFF
    HTML: 
    CSS: \FEFF

    Word Joiner

    U+2060
    HTML: ⁠
    CSS: \2060

    Zero Width Character Reference

    CharacterUnicodeJavaScriptPurpose
    Zero Width SpaceU+200B\u200BLine break opportunity
    Zero Width JoinerU+200D\u200DJoin characters (emojis)
    Zero Width Non-JoinerU+200C\u200CPrevent ligatures
    Word JoinerU+2060\u2060Prevent line breaks
    Zero Width No-Break SpaceU+FEFF\uFEFFBOM / 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&#8203;Word&#8203;That&#8203;Can&#8203;Break</span>

    CSS - Use Word Joiner

    .no-break::after { content: "\2060"; }

    Need invisible characters for social media or gaming?

    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.

    Frequently Asked Questions