Unicode Escape Converter (\u, \u{…}, &#x…;, U+)
Convert text to Unicode escapes — \uXXXX, \u{1F600}, \U0001F600, U+XXXX, &#x…; HTML references, %uXXXX and CSS — and decode any mix of them back to text.
| Char | Code point | JS / JSON | ES6 | Python | HTML | CSS |
|---|---|---|---|---|---|---|
| C | U+0043 (67) | \u0043 | \u{43} | \u0043 | C C | \43 |
| a | U+0061 (97) | \u0061 | \u{61} | \u0061 | a a | \61 |
| f | U+0066 (102) | \u0066 | \u{66} | \u0066 | f f | \66 |
| é | U+00E9 (233) | \u00E9 | \u{E9} | \u00E9 | é é | \E9 |
| U+0020 (32) | \u0020 | \u{20} | \u0020 |     | \20 | |
| 한 | U+D55C (54620) | \uD55C | \u{D55C} | \uD55C | 한 한 | \D55C |
| 글 | U+AE00 (44544) | \uAE00 | \u{AE00} | \uAE00 | 글 글 | \AE00 |
| U+0020 (32) | \u0020 | \u{20} | \u0020 |     | \20 | |
| 😀 | U+1F600 (128512) | \uD83D\uDE00 | \u{1F600} | \U0001F600 | 😀 😀 | \1F600 |
Source code, JSON files, HTML and old web pages each write non-ASCII characters in their own escape syntax. This converter turns text into those escapes — \uXXXX for JavaScript and JSON, \u{…} for modern JavaScript and Rust, \U0001F600 for Python and C, U+ notation, HTML numeric references, legacy %u and CSS — and decodes any mix of them back to readable text. Emoji and other characters beyond U+FFFF are handled correctly, including surrogate pairs.
How to use this tool
- Choose a direction.
- Paste the text, or the escaped string to decode.
- For encoding, pick the format your language or file expects and whether plain ASCII should stay readable.
- Copy the result; the table shows every character in all formats.
Formula
Code points above U+FFFF are written in UTF-16 as two units: high = 0xD800 + ((cp − 0x10000) >> 10), low = 0xDC00 + ((cp − 0x10000) & 0x3FF).
\uXXXX, %uXXXX and HTML references in decode mode may come as such pairs, and the decoder joins them. \u{…}, \U and U+ always name a whole code point.
Example
The emoji 😀 is code point U+1F600. JavaScript and JSON write it as \uD83D\uDE00, ES2015 as \u{1F600}, Python as \U0001F600 and HTML as 😀 or 😀. The Korean syllable 한 is U+D55C, so HTML writes 한.
Frequently asked questions
Why does an emoji become two \u escapes?
JavaScript, JSON and Java store text as UTF-16, where characters beyond U+FFFF need two 16-bit units called a surrogate pair. Both must stay together; one half alone is not a character.
Which format should I use in JSON?
JSON only knows \uXXXX, with surrogate pairs for emoji. It also accepts the raw UTF-8 characters, so escaping is optional unless a system needs pure ASCII.
Are named HTML entities decoded?
Numeric references (&#x…; and &#…;) always are, plus &, <, >, ", ' and . Other named entities such as é are left as they are.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/unicode-converter/
Cite or embed this tool
kakaoCalc. (2026, November 8). Unicode Escape Converter (\u, \u{…}, &#x…;, U+). https://kakao.mobile/tools/unicode-converter/
“Unicode Escape Converter (\u, \u{…}, &#x…;, U+).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/unicode-converter/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms