Text to Unicode
Convert text into Unicode escape sequences such as \u4F60, including surrogate pairs for emoji and other supplementary characters. Runs locally.
Unicode escapes
Enter text to convert.// About this tool
Generate JavaScript-style Unicode escapes for strings, or inspect how characters map to code points. Supports characters outside the basic multilingual plane.
// How to use it
- Enter the text to escape.
- Review the Unicode sequences.
- Copy the escaped output.
// Frequently asked questions
Does it handle emoji?
Yes. Characters above U+FFFF are emitted as UTF-16 surrogate pairs.
Can it decode escapes back to text?
This tool only converts text to escapes; decoding is not included.