Unicode Escape / Unescape
Convert characters to and from \uXXXX notation. Configurable to escape only non-ASCII or every char.
Output appears here
What is Unicode Escaping?
Unicode escape converts characters to their \uXXXX representation, where XXXX is the hexadecimal Unicode code point. This is useful when working in environments where non-ASCII characters need to be represented as escape sequences in string literals.
This tool escapes any Unicode text into escape sequences and unescapes them back to readable characters — all in your browser.
How to escape Unicode characters online
- Paste your text (or escape sequences) into the Input box.
- Choose Escape or Unescape mode.
- The result appears instantly in the Output panel.
Frequently Asked Questions
Why would I need to escape Unicode characters?
Some environments require ASCII-only strings — for example, certain configuration files, Java .properties files, or source code that must be stored as ASCII. Unicode escaping lets you represent any character within that constraint.
What is a 4-digit vs variable-length Unicode escape?
The 4-digit form (uXXXX) covers code points U+0000 to U+FFFF (the Basic Multilingual Plane). The ES6 variable-length form with braces covers all code points including supplementary planes such as emoji (U+10000 and above).
Are all Unicode characters supported?
Yes. The tool handles the full Unicode range, including emoji, CJK characters, Arabic, Hebrew, and all other scripts.
What is a Unicode code point?
A code point is a number assigned to each character in the Unicode standard. For example, the letter A is U+0041 and the smiley emoji is U+1F600.