Unicode Escape / Unescape
Convert text to Unicode escape sequences (\u00e9, \u{1F600}, U+00E9, CSS or HTML) and decode them back to characters. Handles emoji and surrogate pairs.
Runs in your browser. Nothing is uploaded.
About Unicode Escape / Unescape
Unicode Escape writes characters as code-point escapes in the notation your language needs: \uXXXX for JavaScript, JSON and Java (emoji become surrogate pairs), \u{...} for modern JavaScript, \U0001F600 for Python, \E9 for CSS, é for HTML or U+00E9 for documentation.
Unescape accepts any mix of those formats and turns them back into readable text, which helps when debugging escaped API responses and source files.
How to use Unicode Escape / Unescape
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Why does one emoji become two \u codes?
\uXXXX can only hold 16 bits, so characters above U+FFFF are written as a surrogate pair. ES6 \u{1F600} and Python \U avoid that.
Can I escape plain ASCII too?
Untick Only non-ASCII characters to escape every character.
Is Unicode Escape / Unescape free and private?
Yes. Unicode Escape / Unescape is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.