ToolWren logo ToolWren
ToolWren › Unicode

Unicode Escape Converter

Convert non-ASCII text to \uXXXX escape sequences (the kind used in JSON and most programming languages), or decode escapes back to characters.

100% client-side · nothing is uploaded

Loading tool…

How to use the Unicode

  1. Choose the mode you need with the Encode / Decode toggle at the top of the tool.
  2. Type or paste your text into the Input box — the result appears instantly as you type.
  3. Use Swap (⇅) to move the output back into the input and flip the mode, which is handy for round-trips.
  4. Click Copy to copy the result, or Clear to start over.

Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.

About Unicode

What are Unicode escapes?

A Unicode escape represents a character by its code point in a source-safe form, e.g. \u00e9 for é. Many languages and JSON use this so files can stay pure ASCII while still carrying any character.

Encoding and decoding

Encoding replaces every character outside the printable ASCII range with \uXXXX. Decoding converts \uXXXX (and \xXX) sequences back to their characters.

Where you'll see it

JSON strings, JavaScript/Java/Python source, config files, and log output that has been ASCII-escaped for safe transport.

Frequently asked questions

Does it handle emoji and astral characters?
Characters above U+FFFF are made of surrogate pairs, so they're emitted as two \uXXXX escapes, which is exactly how JSON represents them.
Does it also decode \xXX escapes?
Yes, the decoder understands both \uXXXX and two-digit \xXX escapes.
Will ASCII text be changed?
No. Printable ASCII passes through unchanged; only characters outside that range are escaped.

Related tools