About the Unicode Escape Encoder
The Unicode Escape Encoder converts characters to \uXXXX escape sequences, the form used in JavaScript, JSON and Java strings, and also shows HTML hexadecimal entities. It is useful when a file or system only accepts plain ASCII.
Each UTF-16 code unit is escaped separately, so characters outside the Basic Multilingual Plane, such as most emoji, become two escapes (a surrogate pair), for example 🌍 becomes \uD83C\uDF0D.
How to use the Unicode Escape Encoder
- Paste the text.
- Copy the \u escapes, or the HTML entity version.
Example
Chinese characters
“世界” becomes \u4E16\u754C.