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
Conversion Stats
- Input chars
- 0
- Output length
- 0
- Sequences
- 0
- Non-ASCII chars
- 0
Code Point Breakdown
| Char | Code Point | Escape | Plane |
|---|
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
- Paste or type your text (or escape sequences) into the input area.
- Choose Encode to convert characters to \uXXXX sequences, or Decode to convert sequences back to text.
- For characters above U+FFFF (emoji, rare scripts), encoding uses surrogate pairs in \uHHHH\uHHHH format compatible with JavaScript strings.
- The output appears instantly — copy it with the Copy button.
- 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
Related tools
Last updated: 2026-05-23 ·
Reviewed by Nham Vu