Unicode Inspector — Code Points, UTF-8 and UTF-16 Bytes
DeveloperA Unicode inspector is a developer tool that decomposes a string into code points and shows each character's U+ code, UTF-8 bytes, UTF-16 units, and name (or block).
What is it
Unicode assigns every character a unique number (code point, U+0000–U+10FFFF), while UTF-8 and UTF-16 are encodings that store those numbers as bytes. The same character can take 1–4 bytes in UTF-8 and 2 or 4 bytes in UTF-16 (surrogate pairs), which is a common source of string-length bugs. This tool computes standard names for Hangul syllables and CJK ideographs and shows the Unicode block for other characters. Analysis runs entirely in your browser.
How to use
- 1Paste the string to inspect (emoji and any script welcome).
- 2Press inspect.
- 3Read each character's code point, UTF-8/UTF-16 bytes, and name, then copy the report.
Reference
| Character | Code point | UTF-8 | UTF-16 |
|---|---|---|---|
| A | U+0041 | 41 | 0041 |
| 한 | U+D55C | ED 95 9C | D55C |
| € | U+20AC | E2 82 AC | 20AC |
| 😀 | U+1F600 | F0 9F 98 80 | D83D DE00 |
Sources & standards
- The Unicode Standard - Unicode Consortium
- RFC 3629: UTF-8, a transformation format of ISO 10646 - IETF
- MDN Web Docs: Client-side web APIs - MDN Web Docs
FAQ
Why does one emoji count as length 2 in JavaScript?
Because string length counts UTF-16 units. Emoji above U+FFFF are stored as a surrogate pair (two units), so length is 2. The UTF-16 column in this tool shows the actual units.
Does it show the official name of every character?
No. ASCII, Hangul syllables, and CJK ideographs get algorithmically computed standard names; other characters show their Unicode block name. See the Unicode Character Database (UCD) for full official names.
Is my string sent to a server?
No. Inspection happens in your browser and the input is never transmitted.