Unicode Escape / Unescape Converter
Free online Unicode escape and unescape converter. Convert any text into JavaScript-style \uXXXX or \u{...} escape sequences, or decode escaped strings back to readable characters. Full support for emoji, Thai, and astral characters. 100% client-side.
Loading tool...
What is Unicode Escape / Unescape Converter?
The Unicode Escape / Unescape Converter is a free browser tool that translates any plain text into JavaScript-style \uXXXX and ES6 \u{...} escape sequences, and decodes escaped strings back into readable characters. Unicode escape sequences represent each character with a backslash followed by its hexadecimal code point, which lets strings travel safely through ASCII-only channels like JSON files, source code, CSS content values, and network payloads. Because the 4-digit \uXXXX form can only encode the first 65,536 code points, the tool automatically uses the \u{...} notation for astral characters such as emoji, so Thai text, CJK, and symbols are all preserved exactly. Everything runs in your browser with no data sent anywhere.
Key Benefits
- Instantly escape or unescape Unicode text in both directions with live results
- Handles emoji, Thai, CJK, and other astral characters correctly using \u{...} notation
- Supports 4-digit \uXXXX, ES6 \u{...}, and \xHH escape formats for maximum compatibility
- Optional escape-all mode produces fully ASCII-safe output for any context
- 100% client-side and offline-capable - your strings never leave your device
Common Use Cases
- •Prepare strings for JSON, JavaScript, CSS, or Python that must stay ASCII-safe
- •Decode \uXXXX / \u{...} / \xHH sequences found in logs, APIs, or bundled files
- •Encode emoji and non-Latin characters for safe storage and transmission
- •Obfuscate or format text payloads for testing and debugging
- •Teach or verify how Unicode escape sequences and code points work
How to Escape or Unescape Unicode Strings
- Choose the mode: Select Escape to turn text into \uXXXX / \u{...} sequences, or Unescape to decode them back to readable characters.
- Enter your text: Type or paste the plain text (for Escape) or the escaped string such as \u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35 (for Unescape).
- Adjust escape options: In Escape mode, toggle "Escape all characters" on if you need a fully ASCII-safe output even for printable ASCII.
- Copy or download the result: The converted result updates live. Use Copy to put it on the clipboard, or Download to save it as a text file, or Swap to send it back through the opposite mode.
Key Features
- Escape and unescape Unicode text instantly in both directions.
- Supports 4-digit \uXXXX, ES6 \u{...}, and \xHH escape formats.
- Full astral-plane support for emoji, Thai, CJK, and rare characters.
- Optional escape-all mode produces 100% ASCII-safe output.
- Live conversion as you type with copy and download buttons.