Unicode Inspector - Character Analyzer
Paste text to see every character's Unicode codepoint, name, category, block, script and UTF-8 bytes, with copy-ready escapes. Flags invisible characters.
Runs in your browser. No data leaves your device.
About this tool
Breaks text into individual Unicode code points and shows each one's code, name, category, block and script, with UTF-8/UTF-16 encodings and copyable escape sequences. It highlights invisible and control characters so hidden content stands out. Useful for debugging encoding issues, odd whitespace, emoji and mixed-script text.
Features
- Code-point-aware iteration, so emoji and other characters above U+FFFF count as one character
- Per-character table: index, glyph, U+XXXX code, name, and general category (category hidden on narrow screens)
- Invisible and control characters shown as red labels such as [NUL], [TAB], [LF], [NBSP], [SHY], [ZWSP], [ZWNJ], [ZWJ], [LRM], [RLM], [BOM], [WJ], [IDSP], bidi controls [LRE] [RLE] [PDF] [LRO] [RLO] [LRI] [RLI] [FSI] [PDI], variation selectors [VS1]-[VS256], tag characters [TAG a], fillers and joiners such as [CGJ] [ALM] [MVS] [HF]; any other invisible character gets a [U+XXXX] label
- Click a row for details: large glyph, block, script, category, UTF-8 bytes in hex with byte count, UTF-16 code units, and decimal value
- One-click copy of U+XXXX, JavaScript (\uXXXX or \u{XXXXX}), HTML (named entity for about 50 common characters, otherwise &#decimal;), CSS (\HEX), Python (\uXXXX or \UXXXXXXXX) and URL percent-encoding
- Summary stats over the whole input: total characters, unique code points, detected scripts, and UTF-8 size
- Lookups from built-in tables: 323 Unicode blocks (binary search), category ranges, about 30 scripts, and official names for all of Basic Latin and Latin-1 Supplement, about 550 common symbols, punctuation, spaces, format characters and emoji, plus algorithmic names for variation selectors, tag characters, CJK (unified and compatibility) ideographs and Hangul syllables
- Sample text button with emoji, dashes, curly quotes, accents, CJK and zero-width spaces
- Results update as you type (150 ms debounce)
How to use it
- Paste or type text into the box, or click the sample link
- Scan the table; red labels mark invisible or control characters
- Click any row to expand its details
- Use the copy buttons to grab the escape format you need
Inputs
- Any Unicode text typed or pasted into the textarea
Outputs
- On-screen table and stats; escape sequences and code labels copied to the clipboard
Limits and notes
- The character table lists the first 2,000 code points (a notice says so); the stats always cover the full input
- Character names are not the full Unicode database: characters missing from the name table show "Name unknown" with their block rather than a guessed name
- Script detection covers about 30 scripts; anything outside those ranges (including most emoji and punctuation) is Common or Unknown and is excluded from the Scripts stat
- Categories come from hand-made ranges and may be approximate for less common characters
- Combining sequences (for example a letter plus combining accent, or emoji ZWJ sequences) are listed as separate code points, not grouped as graphemes
- Input is not saved (no localStorage)
- Runs entirely in the browser; text is never uploaded
Frequently Asked Questions
How does the Unicode Inspector work?
The tool splits the input into code points with JavaScript's code-point-aware iteration, so emoji and other characters above U+FFFF count as one. For each code point it finds the Unicode block by binary search over about 320 block ranges, and the general category and script from built-in range tables. Names come from built-in data: official names for all of Basic Latin and Latin-1 Supplement and about 550 common symbols, punctuation, format characters and emoji, plus algorithmic names for control characters, variation selectors, tag characters, CJK ideographs and Hangul syllables; anything else shows "Name unknown" with its block rather than a guess. UTF-8 bytes, UTF-16 units and escape formats are computed from the code point, and the summary stats cover the whole input even though the table lists only the first 2,000 characters.
What character properties are shown?
Each character shows its code point (U+XXXX), its official Unicode name (or "Name unknown" with its block when the name is not in the built-in data), general category, Unicode block, script, UTF-8 byte sequence, UTF-16 code units, decimal value, and copyable escape formats for JavaScript, HTML, CSS, Python and URLs.
Can it detect invisible characters?
Yes. Zero-width spaces, joiners, directional marks, byte order marks, soft hyphens, and other invisible Unicode characters are highlighted with colored labels showing their abbreviated names (ZWSP, ZWJ, BOM, etc.).
Is my text uploaded to a server?
No. All analysis runs entirely in your browser. Your text never leaves your device.