Unicode Escape & Unescape

Encode text to \uXXXX, \u{XXXXX}, \xXX escape sequences or decode Unicode back to plain text.

  • 100% free
  • Private in browser
  • No signup
  • No watermarks
Mode
Encode
Escaped Codes
4
Format
standard

Rate this tool

Be the first to rate β€” helps others and improves this page.

About Unicode Escape & Unescape

Convert non-ASCII characters, emojis, and special symbols into Unicode escape sequences for JavaScript, JSON, Java, C, and HTML, or decode escaped strings back into plain text.

How to use Unicode Escape & Unescape

  1. Select Encode (Text to Unicode) or Decode (Unicode to Text) mode.
  2. Enter or paste your text or escaped string.
  3. Choose your preferred escape format (Standard \\uXXXX, ES6 \\u{XXXXX}, or HTML hex).
  4. Copy the converted result.

Key features

  • Supports Standard (\\uXXXX), ES6 (\\u{XXXXX}), C-style (\\xXX), and HTML hex (&#x...;)
  • Full surrogate pair handling for astral plane emojis (> U+FFFF)
  • Bidirectional encoding and decoding
  • Instant live preview

Frequently asked questions

Why use Unicode escapes in code?
Unicode escape sequences guarantee that international characters and symbols remain intact regardless of file encoding issues.