Unicode Escape Converter
Convert text to Unicode escape sequences for JavaScript, JSON, HTML, CSS and Python, and decode them back.
Loading tool…
How to use the Unicode Escape Converter
- 1
Choose a direction and, for escaping, the format you need.
- 2
Type or paste your text.
- 3
Copy the result.
Frequently asked questions
Which formats are supported?
JavaScript and JSON \uXXXX (with surrogate pairs), ES6 \u{…}, HTML &#x…; and &#…;, CSS \XXXX, Python \u and \U, and U+XXXX code points.
Do I need to choose the format when decoding?
No. Every supported format is detected automatically, even when they are mixed in the same text.