Unicode tools in one page: inspect any text character by character with its code point, category, script and UTF-8 bytes; normalize it to NFC, NFD, NFKC or NFKD; and escape or unescape it for JavaScript, JSON, CSS, HTML, Python or URLs. See why 'é' can be one code point or two, why an emoji has a length of 2 in JavaScript, and get the exact escape sequence you need. It all runs in your browser.
| Style | é | 😀 |
|---|---|---|
| JavaScript / JSON | \u00E9 | \uD83D\uDE00 |
| JavaScript ES2015 | \u00E9 | \u{1F600} |
| Python | \xe9 | \U0001f600 |
| CSS | \E9 | \1F600 |
| HTML | é | 😀 |
| URL | %C3%A9 | %F0%9F%98%80 |
Paste it into the inspector; the U+ code point is shown for each character.
NFC stores é as one code point; NFD stores it as e plus a combining accent. They look identical but compare differently.
JavaScript counts UTF-16 units, and characters above U+FFFF take two (a surrogate pair). The inspector shows both counts.
Paste them in the Unescape box. \uXXXX, \u{…}, &#…; and %XX are all decoded.
No. Everything runs in your browser.
The inspector iterates text by code point, or by grapheme cluster using Intl.Segmenter so that é written as e plus a combining accent, or 👍🏽 with its skin-tone modifier, shows as one visible character with all its code points. For each it shows the U+ code point, the general category (uppercase letter, combining mark, currency symbol and so on, tested with Unicode property escapes), the script, and the UTF-8 bytes, and counts visible characters, code points, UTF-16 units — what JavaScript's length reports — and UTF-8 bytes. Normalization uses String.prototype.normalize in all four forms: NFC composes, NFD decomposes, and NFKC/NFKD additionally fold compatibility characters such as ligatures and circled digits. Escaping supports JavaScript \uXXXX (with surrogate pairs) and ES2015 \u{…}, JSON, Java/C#, Python \x/\u/\U, CSS, HTML hex and decimal references, and percent-encoding; by default only non-ASCII and syntax characters are escaped. The unescaper recognizes all of these forms at once, even mixed in one string.