- Home
- Tools
- Encoding & Decoding
- Unicode Escape
- Unicode Escape
Unicode Escape
Write characters as \uXXXX escapes, for source code and JSON that has to stay plain ASCII.
Example
- In
- naïve café ☕
- Out
- na\u00efve caf\u00e9 \u2615
Good to know
- By default only non-ASCII and control characters are escaped. Choose "Every character" to escape the whole text.
- A character beyond U+FFFF, such as most emoji, becomes two escapes: a surrogate pair. That is the form JSON and JavaScript expect.
How Unicode escape works, with a worked example, is explained on the Unicode Escape Encoder/Decoder page.