JavaScript Escapes
Escape text as \uXXXX, JSON surrogate pairs, or a quoted JSON string, and unescape it back.
Escape text as \uXXXX, JSON surrogate pairs, or a quoted JSON string, and unescape it back.
JavaScript and JSON write characters that are awkward to type as \u escapes. This page produces those escapes and reads them back.
Modern JavaScript can write \u{1F44B}. JSON cannot, so it uses the UTF-16 pair \uD83D\uDC4B.
It wraps the text in quotes and escapes quotes, backslashes and line breaks the way JSON.stringify does.