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.

Use the Unicode Escape Converter

Input

Mode:

Quick Examples

Output

Copied!

Summary

The Unicode Escape Converter encodes any text into \uXXXX escape sequences and decodes them back to human-readable characters. It handles the full Unicode range including Supplementary Multilingual Plane (SMP) characters like emoji, which use surrogate pairs (\uD800–\uDFFF) in UTF-16 encoding. Whether you need to embed special characters safely in source code, debug internationalized strings, or inspect raw Unicode values, this tool gives you instant bidirectional conversion.

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-05-23 · Reviewed by Nham Vu