Unicode Escape Converter

Escape and unescape Unicode in three notations

Runs in your browserUtility03Encoding & Crypto

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

  1. 1Choose escape or unescape.
  2. 2When escaping, pick the target notation: \uXXXX for source code, &#...; for HTML.
  3. 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 tools