Back to home

Unicode Escape / Unescape

Convert text to \uXXXX, &#NNNN; or U+XXXX and back

Text
0 chars0 bytes0 lines
Unicode
The result shows up here

Unescaping understands \uXXXX, \u{1F600}, 中, U+4E2D and 0x4E2D. Characters outside the BMP such as emoji are emitted as surrogate pairs in JS format.

FAQ

How do \u escapes, &#DDDD; and U+XXXX relate?

They are different notations for one code point: U+4E2D is the standard form, \u4e2d is used in JavaScript/JSON and 东 in HTML — all the same character.

Why do some emoji need two \u escapes?

Characters above U+FFFF (most emoji) are stored as a UTF-16 surrogate pair, so two \u escapes are expected.