Unicode escape
Convert Unicode escapes into readable text and back.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Convert text to JavaScript-style Unicode escapes and back. Surrogate pairs are handled explicitly, while malformed escapes and unpaired surrogates are rejected.
How to use this tool
- Paste text or JavaScript-style Unicode escapes, including surrogate pairs.
- Choose Encode or Decode; the printable-ASCII option applies only when encoding.
- Check the characters or escapes, then copy or download the result.
Supported inputs and limits
Pasted text is limited to 1 MiB; review the result before using it.
Worked example
Example input
A中文😀
Example options
{}Example output
A\u4e2d\u6587\ud83d\ude00
When something does not work
Use the documented input format and keep values within the displayed limits. Review the result before using it in another document or application. Editing the input marks the previous result as stale; a failed run clears it.
Frequently asked questions
Are my files uploaded?
No. Files and tool input are processed in your browser. Moving around the site can keep a temporary workspace in the same tab. Refreshing or closing the tab clears it, so download results you want to keep.
What should I check in this result?
Convert text to JavaScript-style Unicode escapes and back. Surrogate pairs are handled explicitly, while malformed escapes and unpaired surrogates are rejected.
Documentation & further reading
Related tools
Base64 encode / decode
Encode or decode a snippet in a click.
URL encode / decode
Make those encoded characters readable again.
HTML entities
Convert between HTML entities and readable characters.
SHA-256 checksum
Calculate a SHA-256 checksum for text or a file.