Code points, not grapheme clusters
Inspect Unicode code points
A character you see may be one code point or several. This page lists the first 80 code points, with U+ notation, decimal, UTF-8 bytes, and a JavaScript escape.
The inspector walks code points, so an emoji that uses a surrogate pair is one row. Combining marks stay separate from the base letter. Unescape understands \\uXXXX, \\u{...}, \\xHH, and the named escapes \\n, \\r, \\t, \\b, \\f, quotes, and backslash. It does not evaluate other JavaScript. A code point above U+10FFFF is rejected.
Inspection happens in this tab. The text is not sent away.
This tool runs in your browser. Turn on JavaScript to use it.
One CJK character
U+4F60 is 你. Its UTF-8 form is three bytes.
- Character
- 你
- Code point
- U+4F60
- Escape
- \u4F60
How to use it
- 1Paste text to see one row per code point.
- 2Or paste escapes and unescape them.
- 3Copy the escape column when you need a source string.
Good to know
- Only the first 80 code points are listed.
- Grapheme clusters are not joined.
- Unescape does not run JavaScript.
Questions
Why is an emoji one row?
The page uses code points. A surrogate pair is one code point above U+FFFF.
Will this normalize accents?
No. A composed letter and a letter plus a combining mark stay different.
Which escapes are accepted?
\\uXXXX, \\u{hex}, \\xHH, and the common single-character escapes.
Related tools
- Encode text as hexadecimal
Hex is a way to show raw bytes. This page encodes text as UTF-8 first, then prints each byte. Decoding accepts only an even number of digits and rejects bytes that are not UTF-8.
- HTML entity encode and decode
Browsers treat < as the start of a tag. If the characters are meant to be seen, the HTML source needs < instead. This page writes that source. It does not render it.
- Make a URL slug
A slug is the readable tail of a URL. This page lowercases the text, removes accents, and joins the remaining words with hyphens.