How to use
- Choose Text → escapes or Escapes → text.
- Pick the escape style you need — JavaScript/JSON, ES6, Python, CSS, HTML or U+ code points.
- Type or paste your text. The result updates as you type.
- Check the character table to see exactly which code points the text contains.
Options explained
- JavaScript / JSON
- \uXXXX with four hex digits. Characters outside the Basic Multilingual Plane, such as emoji, become a surrogate pair (😀 → 😀).
- ES6, Python, CSS, HTML
- ES6 \u{1F600}, Python \U0001F600, CSS \1F600 and HTML 😀 or 😀 write the full code point in one sequence.
- Escape ASCII too
- Also escapes plain letters, digits and punctuation. Off by default, so only non-ASCII characters change.
Examples
| Text | JavaScript | HTML | Code points |
|---|---|---|---|
| 中文 | 中文 |
中文 |
U+4E2D U+6587 |
| é | é |
é |
U+00E9 |
| 😀 | 😀 |
😀 |
U+1F600 |
Frequently asked questions
Can it decode a mix of formats?
Yes. \uXXXX (including surrogate pairs), \u{…}, \UXXXXXXXX, \xNN, %uXXXX, &#x…;, &#…; and U+XXXX can all appear in the same input.
Why does one emoji show two code points in some tools?
Emoji with skin tones, flags and family groups are sequences of several code points joined together. The character table lists each one, including invisible joiners (U+200D) and variation selectors (U+FE0F).
Is my text uploaded?
No. Everything runs in your browser.
Privacy
This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.