Back
Unicode escape converter
Encoding
Loading
Loading tool
Preparing the tool. The remaining time is not yet known.
All processing for this tool happens in your browser. Your input is not sent to a server.
About this tool
Convert text to UTF-16 Unicode escapes or decode supported escape sequences.
Common uses
- Convert text to UTF-16 Unicode escapes or decode supported escape sequences.
- Encode text as one \uXXXX escape per UTF-16 code unit.
How to use it
- 1.Encode text as one \uXXXX escape per UTF-16 code unit.
- 2.Decode \uXXXX, \u{...}, \xXX or supported character escapes such as \n and \t.
Worked example
Input and result
😀
\ud83d\ude00
A supplementary code point is represented by two UTF-16 escapes.
Limits and notes
- Supplementary characters encode as surrogate pairs. Incomplete, unknown or out-of-range escapes fail; ordinary unescaped text passes through.
Frequently asked questions
What does this tool do?
Convert text to UTF-16 Unicode escapes or decode supported escape sequences.
What should I check before using the result?
Supplementary characters encode as surrogate pairs. Incomplete, unknown or out-of-range escapes fail; ordinary unescaped text passes through.