Unicode Escape Converter
Free online Unicode escape converter: text to \uXXXX and back, with correct UTF-16 surrogate pairs for emoji.
Data handling: common local tools process inputs in your browser; network queries, server execution and optional AI follow their separate data-use notes.
What is Unicode Escape Converter?
Unicode escapes (like \u4e2d) appear everywhere: JSON responses, .properties config files and source-code literals. When debugging an API you restore unreadable \u sequences to readable text, or convert text to escapes the other way to feed legacy ASCII-only systems — this tool does both. Characters beyond the BMP, such as emoji, are emitted correctly as UTF-16 surrogate pairs.
How to Use
- Paste text or a \uXXXX sequence
- Choose the conversion direction
- Copy the result
FAQ
- Are \u4e2d and 中 the same thing?
- Both are Unicode code point 20013 (中): the former is the JS/JSON hexadecimal escape, the latter the HTML decimal entity.
- Why does an emoji convert into two \u sequences?
- Characters beyond U+FFFF, such as emoji, are represented in UTF-16 as surrogate pairs, so they legitimately produce two \uXXXX escapes.
Practical tutorials
- A Brief History of Character Encodings: ASCII, Unicode, UTF-8, and the Root Cause of Mojibake
The evolution from ASCII to Unicode to UTF-8, the difference between a character set and an encoding, and why garbled text happens plus how to troubleshoot it.
Related Tools
Last updated 2026-09-15