Unicode Escape and Unescape
Convert text to Unicode escapes such as \u0633 or U+0633, or decode strings such as \u0633\u0644\u0627\u0645 back to readable text.
Runs on your device.
0 characters0 bytes
0 characters0 bytes
How to Use It
- Choose Escape or Unescape.
- To escape, choose the output format: JS / JSON, ES6, Python, or U+XXXX.
- Paste the text, then copy the output.
Questions and Answers
Why does one emoji have two \u escapes?
JavaScript and JSON store text as UTF-16. Characters above U+FFFF, such as most emoji, take two units (a surrogate pair) in UTF-16. The ES6 and Python formats write each character as one escape.
Which format do I need?
JS / JSON for JSON, JavaScript, Java, and C#. Python for Python code. U+XXXX to write about a character or to look it up.
Good to Know
Unescape decodes only Unicode escapes. Other sequences, such as \n or \t, stay as they are.
Related Tools
- Unicode Character InspectorSee each character of a text with its code point, name, category, script, and UTF-8 bytes. Find Arabic yeh, ZWNJ, and invisible characters.
- HTML Entity Encoder and DecoderConvert HTML special characters such as < and & to < and &, or decode references such as and س back to text.
- URL Encoder and DecoderPercent-encode text and URLs (%D8%A7), or decode them back to readable text. Encode one part of a URL or a complete URL.