Unicode Escape Converter
Convert text and unicode escapes
Choose escape or unescape first to convert text and Unicode escapes; fine-grained options are available in Advanced mode.
The full guide also includes pitfalls, worked examples, snippets, FAQs, and related tools for checking results or troubleshooting.
About this tool
Convert text to four-digit UTF-16 escape sequences and decode those sequences back into text. Supplementary characters such as emoji use a surrogate pair. Advanced options control escaping ASCII, hex letter case and rejection of incomplete escapes. This is not URL percent encoding or a complete JavaScript/JSON string parser.
Production Snippets
ASCII, a Chinese character and a surrogate pair
text
AδΈπ
A\u4e2d\ud83d\ude00Frequently Asked Questions
Why does one emoji produce two escapes?
The output format is \uXXXX per UTF-16 code unit. Both surrogate halves are emitted, so decoding the pair reconstructs the character. This format differs from code-point notation such as \u{1F600}.
What does strict unescape validate?
It rejects a \u prefix not followed by four hexadecimal digits. It does not validate an entire JSON string, combine escape grammars, or reject every unpaired surrogate. Other plain text is retained.
Is input saved?
Conversion stays in the browser. This page saves an input/settings draft in localStorage; Clear removes it. Avoid keeping a draft on a shared browser when the text is private.
Keep browsing