Unicode Escape Converter

\u0048\u00e9\u006c\u006c\u006f\u0020\ud83d\ude00
Converted locally in your browser. Encoding escapes characters to \uXXXX UTF-16 units (or \u{…} code points), and decoding expands \uXXXX, \u{…}, and \xXX escapes back to text.

Encode text as Unicode escapes

Turn arbitrary text into ASCII-safe \u escapes for embedding non-ASCII strings in source code, config files, or log output. By default every character becomes a lowercase \uXXXX UTF-16 unit, so astral characters like emoji split into a surrogate pair. Switch on Code point form to emit a single \u{…} per code point, or Non-ASCII only to leave printable ASCII untouched.

When to use this tool

Reach for the Unicode escape converter to make a non-ASCII string ASCII-safe before pasting it into source code, a config file, or log output, or to decode \u and \x escapes back into readable text when you are debugging an encoding issue. Encode emits UTF-16 \uXXXX units by default, ES6 \u{…} code points on demand, or escapes only the non-ASCII characters; decode accepts \uXXXX, \u{…}, and \xXX and rejoins surrogate pairs.

Privacy and limitations

Everything runs locally in your browser; nothing is sent anywhere. This tool handles \u, \u{…}, and \xXX escapes only — HTML entities, JSON string escaping, percent/URL encoding, octal escapes, and language-specific escape dialects are out of scope and covered by the related tools below.