Unicode Escape / Unescape
Convert text to \uXXXX escape sequences and back, including emoji and astral characters.
About the Unicode Escape / Unescape
Unicode escapes like \u00e9 let you write any character in ASCII-only source code, JSON and config files. This tool converts text to escape sequences and back, including emoji outside the Basic Multilingual Plane.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the Unicode Escape / Unescape
- Choose Escape or Unescape.
- Paste the text.
- Optionally escape plain ASCII too, then copy the result.
Frequently asked questions
How are emoji escaped?
Characters above U+FFFF, such as most emoji, become a surrogate pair of two \uXXXX escapes, as JavaScript and JSON require.
When do I need escapes?
When a file or system only accepts ASCII, or to make invisible characters visible while debugging.
Related tools
Base64 Encode / Decode
Encode text to Base64 or decode Base64 to text with full UTF-8 and URL-safe support.
URL Encode / Decode
Percent-encode or decode URLs and query string components.
HTML Entity Encode / Decode
Escape special characters as HTML entities or decode entities back to text.
JWT Decoder & Verifier
Decode JSON Web Tokens, inspect header and claims, check expiry and verify HMAC signatures locally.
JWT Generator
Create signed JSON Web Tokens with HS256, HS384 or HS512 from a custom header and payload.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.