🔬 Unicode Inspector

Paste any emoji or text to inspect its ZWJ codepoint structure, grapheme vs UTF-16 length, UTF-8 bytes, and code snippets.

Try:

Visual Chars (Grapheme)

1

Code Points

7

JS .length (UTF-16)

11

UTF-8 Bytes

25 B

Codepoint Breakdown

Developer Code Snippets

Understanding Unicode Emoji Structure & String Length

Composite emojis such as family sequences (👨‍👩‍👧‍👦) or skin-tone professions (👩🏽‍🚀) look like a single character on screen, yet internally combine multiple Unicode code points joined by invisible Zero Width Joiners (ZWJ, U+200D).

Because JavaScript .length counts UTF-16 code units instead of visual grapheme clusters, naive length checks can split emojis in half and corrupt text. Inspecting both grapheme count and UTF-8 byte size prevents truncation bugs in forms and databases.

💡 Key Tips & Highlights

  • Use Intl.Segmenter instead of string.length when validating user-facing character limits.
  • Copy HTML entities or CSS content escapes when embedding symbols in ASCII-safe source files.
✅