Skip to content
DevTools

Unicode Escape & Unescape (\u, \u{…}, U+)

Convert text to Unicode escape sequences (\uXXXX, ES6 \u{…} or U+ code points) and back. Handles emoji and surrogate pairs correctly.

Input

Output

Ready

Runs locally in your browser — your data is never uploaded.

About the Unicode Escape Converter

Convert text to Unicode escape sequences and back. Choose classic JavaScript/JSON escapes (\uXXXX, with surrogate pairs for emoji), ES6 code point escapes (\u{1F680}) or U+ code point notation.

Decoding accepts all three forms, which is useful for reading escaped strings in logs, JSON files and source code.

How to use it

  1. Choose Encode or Decode and the escape style.
  2. Paste your text.
  3. Copy the result.

Features

  • \uXXXX, \u{…} and U+ formats
  • Correct surrogate-pair handling for emoji
  • ASCII characters left readable

Frequently asked questions

Why does an emoji become two \u sequences?

JavaScript and JSON strings are UTF-16. Characters outside the Basic Multilingual Plane, such as most emoji, are stored as a surrogate pair of two code units.

Is my data uploaded anywhere?

No. All processing happens in JavaScript inside your browser tab. Your input is never sent to a server, logged or stored, so it is safe to use with internal or sensitive data.