Unicode Escape Converter

Encode any text to \uXXXX Unicode escape sequences or decode them back to readable characters, with support for all Unicode planes including emoji.

Input

Mode:

Quick Examples

Output

Copied!

Summary

Encode any text to \uXXXX Unicode escape sequences or decode them back to readable characters, with support for all Unicode planes including emoji.

How it works

  1. Paste or type your text (or escape sequences) into the input area.
  2. Choose Encode to convert characters to \uXXXX sequences, or Decode to convert sequences back to text.
  3. For characters above U+FFFF (emoji, rare scripts), encoding uses surrogate pairs in \uHHHH\uHHHH format compatible with JavaScript strings.
  4. The output appears instantly — copy it with the Copy button.
  5. Use the Swap button to flip input and output for round-trip checks.

Use cases

  • Embed non-ASCII characters safely in JavaScript or JSON source files.
  • Decode \uXXXX sequences found in minified JS or API responses.
  • Debug internationalized strings and verify correct Unicode code points.
  • Encode emoji or special symbols for environments that do not support UTF-8 directly.
  • Convert Chinese, Japanese, Korean, or Arabic text to escape sequences for ASCII-only storage.
  • Inspect surrogate pairs for characters outside the Basic Multilingual Plane.
  • Prepare strings for regular expressions that require escaped Unicode.
  • Audit third-party data for unexpected or malicious Unicode sequences.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu