Convert text to \uXXXX, &#NNNN; or U+XXXX and back
The result shows up hereUnescaping understands \uXXXX, \u{1F600}, 中, U+4E2D and 0x4E2D. Characters outside the BMP such as emoji are emitted as surrogate pairs in JS format.
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.
Characters above U+FFFF (most emoji) are stored as a UTF-16 surrogate pair, so two \u escapes are expected.