Unicode Escape Encode / Decode
Convert text to \uXXXX escapes and back.
About this tool
Encode non-ASCII characters as JavaScript-style \uXXXX or \u{...} escapes, or decode escape sequences to Unicode text. Useful for JSON strings, i18n files, and log messages with escaped emoji.
What you get
- \uXXXX and \u{codepoint} encoding
- Decoded Unicode text from escapes
- Optional brace form for astral characters
How to use
Paste text or escaped strings. Toggle brace form for code points above U+FFFF, then copy.
FAQ
How to convert text to Unicode escape sequences?
Paste text in Encode mode to get \uXXXX escapes for BMP characters; enable brace form for astral code points above U+FFFF.
How to decode \uXXXX escapes?
Paste escaped strings in Decode mode—including \u{...} forms—and copy the restored Unicode text including emoji.
What is the difference between \u and \u{ } escapes?
Classic \uXXXX covers code points up to U+FFFF. Brace form \u{1F600} handles supplementary characters like emoji in one escape.
When are Unicode escapes used in JSON?
JSON allows \u escapes for non-ASCII in strings. Logs, i18n files, and generated code often emit them for portability.
By using this tool you agree to our Terms of Use and Privacy Policy. Results are provided as-is without warranty.