Unicode Escape Converter
Escape and unescape Unicode in three notations
What is Unicode Escape Converter?
This Unicode tool converts between readable text and escape sequences, supporting the \uXXXX, &#decimal;, and U+XXXX notations, and correctly handles characters such as emoji that require surrogate pairs. It is most often used to recover the original text from escaped log output. Conversion runs locally.
How to use Unicode Escape Converter
- 1Choose escape or unescape.
- 2When escaping, pick the target notation: \uXXXX for source code, &#...; for HTML.
- 3When unescaping, all three notations are detected automatically.
Frequently asked questions
Why do my logs contain sequences like \u4f60\u597d?+
Many serialization libraries escape non-ASCII characters by default — Python json.dumps uses ensure_ascii=True unless told otherwise, and several Java JSON libraries behave the same way — so any non-ASCII character is written as \uXXXX. This is not corrupted data; unescape it here and the original text reappears.
Why does one emoji turn into two \u sequences?+
Emoji code points sit above the Basic Multilingual Plane, so UTF-16 represents them with a surrogate pair. A paired sequence such as 🎯 is therefore a single character once unescaped, and splitting the pair corrupts it.
Related tools
All toolsBase64 Encoder & Decoder
Encode and decode Base64, with UTF-8 and URL-safe support
File to Base64
Convert files to Base64 and data URIs — nothing is uploaded
URL Encoder & Decoder
Percent-encode URLs, with separate modes for full URLs and parameter values
HTML Entity Encoder
Escape and unescape HTML entities
Hex to Text Converter
Convert between text and hex with several separator styles
Hash Generator
Compute SHA-1/256/384/512 and MD5 digests