What is the Unicode Escape and Unescape?
Sometimes a file or a program can only hold plain ASCII. Then letters like é, ü or ع and every emoji have to be written as escape codes. JavaScript and JSON write é as é. Python writes 😀 as \U0001F600. CSS writes \e9 and HTML writes é. They all say the same thing, just in a different form.
Paste text and pick the style your code needs. Paste escaped text and press Unescape, and you get readable letters back. Unescape reads every style at once, so a log line that mixes \u codes, &#x entities and \x bytes still comes out clean.
Emoji outside the basic range are handled the right way for each style. JavaScript gets a surrogate pair (😀), modern JavaScript gets \u{1f600}, and Python gets the 8-digit \U form.
Features
Seven styles
JavaScript, ES6, Python and Java, CSS, HTML, U+ and UTF-8 bytes.
Emoji done right
Surrogate pairs where the language needs them.
Reads mixed input
Unescape handles every style in the same text.
Private
Runs in your browser. Nothing is sent anywhere.
How to use the Unicode Escape and Unescape
- 1
Paste your text or the escaped codes.
- 2
Pick the direction and the style.
- 3
Copy the result.
Who it is for
Developers
Put Arabic, Chinese or emoji text in a source file that must stay ASCII.
Translators
Read .properties and JSON language files full of \u codes.
Support teams
Make sense of API responses and logs that show ال instead of words.
Web designers
Write the CSS code for an icon or special symbol in content: "\2713".
Tips for better results
- JSON allows real UTF-8 letters, so escaping is only needed when the receiving system is old or strict.
- Pick "Every character" to escape plain English letters too. It is handy for puzzles or for hiding a word from search.
- If decoded text looks like é, the text was decoded twice with the wrong charset. Try the UTF-8 bytes style on the original.
Questions people ask
What is a Unicode escape?
A way to write any character with plain ASCII. You use its code number, like é for é. The program that reads it turns the code back into the letter.
Why does one emoji become two \u codes?
JavaScript and JSON strings use 16-bit units. Characters above U+FFFF, like most emoji, need two of them, called a surrogate pair. Modern JavaScript can use \u{1f600} instead.
Do I need to pick a style to decode?
No. Unescape finds \u, \u{}, \U, \x, &#x, &#, U+ and CSS codes in the same text.
Is the converter free?
Yes. There is no sign-up and no limit.
Is my text uploaded?
No. The conversion runs in your browser, so your text never leaves your device.
Does decoding need the right style?
No. Unescape reads all the styles at once, even mixed in one text.