Category: Text tools

Unicode Escape Converter

System ideaMissing a tool?

Encode text to \uXXXX / \u{XXXXX} escapes, or decode them back

Encode text into \uXXXX or \u{XXXXX} Unicode escape sequences, or decode a string full of escape sequences back into readable text. Runs entirely in your browser.

Result
\u0043\u0061\u0066\u00e9\u0020\ud83d\ude00

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

Unicode escapes show up everywhere from JavaScript and JSON source to log files and configuration exports, in two slightly different shapes: the classic \uXXXX form, one per UTF-16 code unit, and the newer \u{XXXXX} form, one per full code point, which avoids splitting characters outside the Basic Multilingual Plane (like most emoji) into an unreadable surrogate pair. This tool converts in both directions, and on decode it reports exactly where an escape sequence couldn't be parsed instead of failing silently.

How to use it

  1. Choose Encode to convert text, or Decode to read escapes back.
  2. When encoding, pick the \uXXXX or \u{XXXXX} style.
  3. Paste or type into the input box and copy the result.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Is my text uploaded anywhere?
No. Encoding and decoding happen in JavaScript running in the page, so nothing you paste ever leaves your device.
What's the difference between the two escape styles?
\uXXXX always encodes one UTF-16 code unit, so a character outside the Basic Multilingual Plane like most emoji becomes two escapes (a surrogate pair); \u{XXXXX} encodes one full code point per escape, so that same character is a single, more readable escape.
What happens with text that isn't escaped?
When decoding, any character that isn't part of a \u escape is copied through unchanged, so you can decode a string that mixes plain text and escape sequences.