EN
My tools

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.

Direction
Escaped text
Caf\u00E9 \uD55C\uAE00 \uD83D\uDE00
Characters escaped
4
Code points
9
10 UTF-16 units
Each character in every format
CharCode pointJS / JSONES6PythonHTMLCSS
CU+0043 (67)\u0043\u{43}\u0043C C\43
aU+0061 (97)\u0061\u{61}\u0061a a\61
fU+0066 (102)\u0066\u{66}\u0066f 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
My tools →
Advertisement

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

  1. Choose a direction.
  2. Paste the text, or the escaped string to decode.
  3. For encoding, pick the format your language or file expects and whether plain ASCII should stay readable.
  4. 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:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). Unicode Escape Converter (\u, \u{…}, &#x…;, U+). https://kakao.mobile/tools/unicode-converter/

MLA

“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

Advertisement