Unicode Escape Escape & Unescape

Turn non-ASCII characters into \uXXXX escapes and back. This tool does both escape and unescape on one page — just pick a mode, paste your text, and click. Everything runs on your device, nothing is sent to a server.

The result will appear here…
or press Ctrl+Enter

Everything runs in your browser. Your data is never sent to our servers.

728 × 90Ad Space AvailablePlace your ad here

Example

Example Input

café 日本

Example Output

caf\u00e9 \u65e5\u672c

How to Use

  1. 1Choose Escape or Unescape mode at the top.
  2. 2Type or paste your text into the Input field.
  3. 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
  4. 4Click Copy to copy the result, or "Swap input/output" to quickly reverse the operation.

About Unicode Escape

Unicode Escape turns non-ASCII characters into \uXXXX notation (or \u{XXXXX} for code points above the BMP), and unescape turns them back into the original characters.

How it works: each character above code 127 is converted to its code point's hexadecimal representation with a \u prefix. ASCII characters are left as-is. Unescape recognizes \uXXXX and \u{...}.

Unicode escape notation is used in source code (JS, JSON, Java, etc.) to safely represent non-ASCII characters in ASCII files. Useful for debugging and portability.

FAQ

Can this Unicode Escape tool both escape and unescape?

Yes. This is a single page with a toggle — use Escape mode to transform text, and Unescape mode to reverse it. No need for two separate pages.

Is my data sent to a server?

No. Unicode Escape is processed entirely in your browser. The text you enter never leaves your device.

Related Tools

Related Categories