Encoders & Text

Unicode Inspector

Inspect code points, grapheme clusters, normalization forms, and scripts.

  • History kept on this deviceRecent results are kept in this browser's local storage until you clear them.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

Input

0 graphemes 0 code points 0 B UTF-8 0 UTF-16 units

Normalization forms

Enter text in the input pane to compare NFC, NFD, NFKC, and NFKD normalizations.

Code point breakdown

Code points, grapheme cluster indices, UTF-8 bytes, UTF-16 code units, escape forms, and Unicode properties
RowCharacterCode pointGraphemeUTF-8 bytesUTF-16 unitsEscape formsProperties
Enter text above to inspect code points and grapheme clusters.

What this tool does

Breaks text into grapheme clusters and Unicode code points, shows each code point's hexadecimal scalar value (U+XXXX), UTF-8 byte sequence, UTF-16 code units, and JavaScript/HTML escape forms, flags invisible and bidirectional control characters, and compares the four standard normalization forms (NFC, NFD, NFKC, NFKD) side by side without modifying your input.

Grapheme clusters, code points, and UTF-16 code units

  • JavaScript's string.length counts 16-bit UTF-16 code units, and [...string].length counts Unicode scalar values (code points). Neither equals what a reader sees as a single user-perceived character when combining marks or Zero Width Joiner (U+200D) sequences are present.
  • This tool uses Intl.Segmenter with granularity: 'grapheme' to report the true grapheme count. For example, a 4-person family ZWJ sequence (U+1F468 U+200D U+1F469 U+200D U+1F467 U+200D U+1F466) is 1 grapheme, 7 code points, 25 UTF-8 bytes, 11 UTF-16 code units.

Invisible and bidirectional control characters

The inspector scans every code point against the 15 invisible and direction-changing characters in the Trojan Source (CVE-2021-42574) and zero-width collision classes (U+200Bโ€“U+200F, U+202Aโ€“U+202E, U+2066โ€“U+2069, and U+FEFF). When any are present, a warning banner names the exact 1-based row numbers and highlights those rows in the table.

Limits

No character names, blocks, or general categories: those need the Unicode Character Database, which is not shipped. Properties are limited to the fixed probe list below.

  • Probed properties (17): Letter, Number, Punctuation, Symbol, Mark, Whitespace, Emoji, Control, Format, Private use, Unassigned, Latin, Greek, Cyrillic, Han, Arabic, Hebrew.
  • Interactive code-point table inspection is capped at 10,000 code points (inputs above that display a warning and show the first 10,000 characters), with a hard input ceiling of 16.0 MB.

Related tools

  • Hex / Text Converter (/text/hex) for raw byte-stream hexadecimal encoding and multi-charset TextDecoder decoding.
  • String Escape / Unescape (/text/escape) for JSON, JavaScript, C, POSIX shell, and SQL string literal escaping.
  • Punycode / IDN Converter (/text/punycode) for IDN xn-- domain label conversion and mixed-script detection.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.