Unicode escape decoder
Decode \uXXXX, \u{1F600}, \U0001F600 and \xNN escapes back into readable text, including surrogate pairs such as \uD83D\uDE00, with local code point validation and no upload.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Supports \uXXXX, \u{XXXXXX}, \UXXXXXXXX, \xNN and plain escapes such as \n \t \\; other characters pass through unchanged.
Decoded text
The result depends only on the input and is decoded locally; nothing is uploaded.
Enter Unicode escapes to decode them
What this tool does
- Turn escaped \uXXXX sequences from logs, JSON payloads and Java/JS sources back into readable text
- Inspect which code points a string really contains, for example confirm that \uD83D\uDE00 is U+1F600 and not two broken characters
- Decode API responses that escape non-ASCII characters, or convert ES6 brace escapes such as \u{1F680} into real characters
Example
Input
\u4f60\u597d\uff0c\uD83D\uDE00 \u{1F680}Output
你好,😀 🚀
\uD83D\uDE00 is a UTF-16 surrogate pair and is combined into the single code point U+1F600; the escape counter reports 6 because a pair counts as two escapes.
Frequently asked questions
Why did \uD83D\uDE00 fail before but works now?
The old implementation treated 0xD800–0xDFFF as invalid and threw. UTF-16 serializers (JSON.stringify, Java Unicode escapes) encode astral characters as a high surrogate followed by a low surrogate. A high surrogate escape now looks ahead for its low surrogate and merges the pair into one code point; only genuinely lone surrogates are rejected.
Which escape forms are supported?
\uXXXX (4 digits), \u{XXXXXX} (1–6 digits, ES6), \UXXXXXXXX (8 digits, common in PHP/Java) and \xNN (2-digit byte), plus the usual \n \r \t \\ \" \' escapes. Regex escapes such as \d or \. are not Unicode escapes and pass through as literal characters.
When does it report an error?
Three cases: not enough hex digits or invalid characters (incomplete escape), a code point above U+10FFFF (out of range), and a surrogate that is not followed by its partner (lone surrogate). The reason is shown under the input instead of returning a plausible-looking wrong answer.
Can it damage the rest of my text?
No. Only sequences starting with \u, \U or \x are decoded; everything else is copied verbatim. Character counts are measured in code points, so an astral character counts as one.
Is the text uploaded?
No. Decoding happens entirely in your browser; the page makes no network requests and stores nothing locally.
Keywords:\uD83D\uDE00Unicode escape decodersurrogate pairoffline