Unicode Escape Online - Convert Unicode Sequences

Convert text to/from Unicode escape sequences. Fast, secure, and completely free. All processing happens in your browser — no data is sent to any server.

What is Unicode Escape?

Unicode escaping represents characters using their code point in the \uXXXX (or \u{XXXXX} for characters outside the Basic Multilingual Plane) notation used by JavaScript, JSON, Java, and several other languages, instead of the character itself. This is useful when a string needs to be represented in pure ASCII — for compatibility with older systems, for embedding in source files with restricted encodings, or simply to see the exact code point behind a character that looks identical to another (a common source of subtle bugs with look-alike Unicode characters).

How to Use Unicode Escape

  1. Paste text containing the characters you want to escape — accented letters, emoji, or symbols from any script
  2. Click 'Escape' to convert each non-ASCII character into its \uXXXX representation
  3. Use 'Unescape' to convert \uXXXX sequences back into their displayed characters
  4. Copy the escaped string for use in source code, JSON, or ASCII-only systems
  5. Inspect individual code points to identify visually similar but distinct characters

Key Features

Why Use Unicode Escape?

Two strings that look identical on screen can contain entirely different Unicode code points — a Cyrillic 'а' instead of a Latin 'a', for instance — which is a real source of bugs in string comparisons, security checks, and domain name spoofing. Escaping a string reveals exactly which code points it contains, which is invaluable when debugging a comparison that mysteriously fails, or when you need to embed non-ASCII text in a system (an old database column, a legacy config format) that only accepts plain ASCII.

Common Use Cases

Frequently Asked Questions

Why does an emoji sometimes turn into two \u escape sequences instead of one?

Characters outside the Basic Multilingual Plane, including most emoji, are represented in JavaScript as a surrogate pair — two 16-bit code units — so escaping shows both parts rather than a single code point.

Is \uXXXX escaping the same in JSON as in JavaScript?

Yes, JSON adopted the same \uXXXX escape format as JavaScript, so escaped output from this tool is valid to use directly inside a JSON string value.

Can escaping help me detect a phishing-style look-alike domain or username?

Yes — escaping reveals the actual underlying code points, making it easy to spot a Cyrillic or Greek character standing in for a visually similar Latin letter.

Does escaping change the meaning of the text?

No, it's a lossless, reversible representation — unescaping the output always reconstructs the original characters exactly.

Do I need to escape common ASCII characters like letters and numbers?

No, only non-ASCII characters are escaped by default since standard ASCII is already safe in virtually every text-based format.

Related Tools