Unicode Tools

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.

Escapes for é (U+00E9) and 😀 (U+1F600)

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

When to use it

  1. Find the code point of an emoji or symbol.
  2. Debug strings that look the same but compare differently.
  3. Get the \u escape for a character in JavaScript or JSON.
  4. Normalize text before comparing or storing it.

How to Use

  1. Paste text.
  2. Inspect characters, or switch to Normalize or Escape.
  3. Copy the result you need.

Features

  1. Code point, category, script and UTF-8 per character
  2. Grapheme-cluster view
  3. NFC, NFD, NFKC and NFKD
  4. Nine escape styles
  5. Auto-detecting unescape
  6. 100% client-side

FAQs

How do I find a character's Unicode code point?

Paste it into the inspector; the U+ code point is shown for each character.

What's the difference between NFC and NFD?

NFC stores é as one code point; NFD stores it as e plus a combining accent. They look identical but compare differently.

Why is an emoji's length 2 in JavaScript?

JavaScript counts UTF-16 units, and characters above U+FFFF take two (a surrogate pair). The inspector shows both counts.

How do I unescape \u sequences?

Paste them in the Unescape box. \uXXXX, \u{…}, &#…; and %XX are all decoded.

Is my text uploaded?

No. Everything runs in your browser.

Technical Details

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.

Text Utilities

Text Utilities

  • HTML to Text
  • Data Extractor
  • PII Redactor
  • Arabic Script Formatter
  • Transliteration Tool
  • Text to Emoji
  • Username Generator
  • Email Subject Line Generator