Convert text to \uXXXX Unicode escape sequences, or turn \uXXXX and \u{1F600} escapes back into readable characters. Handles emoji and surrogate pairs. Useful for reading escaped strings from JSON, JavaScript or Java source and logs. Works in your browser.
A Unicode escape writes a character as its code in hexadecimal, such as \u3042 for あ. JavaScript, JSON, Java and many other languages use this form so that any character can be written using plain ASCII. You often see it in API responses, log files and source code, where non-English text appears as a long run of \u sequences.
This tool converts text to that notation and back, in a single editor.
\uXXXX code.\uXXXX sequence with lowercase hex digits😀 → 😀), the same as in JavaScript and JSON\uXXXX (upper- or lowercase hex, surrogate pairs included) and the ES2015 code point form \u{1F600}| Text | Escaped |
|---|---|
Hi | \u0048\u0069 |
あ | \u3042 |
😀 | 😀 |
When unescaping, \u{1F600} and 😀 both become 😀.
The tool escapes every character so the output is uniform and safe for any ASCII-only context. Unescape accepts mixed text, so caf\u00e9 becomes café.
\n, \x41 or あ supported?No. Only \uXXXX and \u{...} are decoded; other sequences are left as they are.
No. Conversion happens entirely in your browser.