Unicode Escape Converter
Free online Unicode escape converter: text to \uXXXX and back, with correct UTF-16 surrogate pairs for emoji.
Privacy: all processing happens locally in your browser. Your input never leaves your device.
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.
Related Tools
Base64 Encoder / DecoderFree online Base64 encoder and decoder built on UTF-8 bytes — non-Latin text and emoji round-trip cleanly, all local.URL Encoder / DecoderFree online URL encoder and decoder following RFC3986 percent-encoding, with clear errors for truncated % sequences.HTML Entity Encoder / DecoderFree online HTML entity encoder and decoder: named, decimal and hex forms, both ways — show code safely, fight XSS.UTF-8 / Hex ConverterFree online UTF-8 to Hex converter: text to hex bytes (中 -> e4 b8 ad) and back, with byte validity checks — local.
Last updated 2026-09-04