Unicode encode / decode
Unicode Converter
Turn text into unicode escapes or decode them back instantly.
How it works
Converts characters to escaped unicode sequences (\\uXXXX or \\u{X}) or decodes those escapes back to text. Handles surrogate pairs so emojis and extended symbols survive round-trips.
- Toggle \\uXXXX vs \\u{X} to match JSON or modern JS syntax.
- Invalid escapes throw a clear error so you can fix malformed sequences.
Quick examples
Leave \"Only non-ASCII\" on to keep plain letters untouched while escaping symbols.
Mini FAQ
When to use \\u{X} vs \\uXXXX?
\\u{X} is concise and supported in modern JS; \\uXXXX is JSON-friendly and works in older parsers.
Why keep only non-ASCII on?
It preserves readable ASCII while escaping only characters that may break legacy systems.
Decode error?
The input likely has a malformed escape (bad hex or missing brace). Fix and retry.
Related tools