Unicode Escape Converter
Encode text as JavaScript Unicode escape sequences and decode Unicode escapes, including emoji surrogate pairs.
Encoding uses JavaScript UTF-16 escape sequences. Decoding also accepts brace-style code points such as \u{1F44B}. Other escapes are left unchanged.
Enter or paste your input
The example is ready to edit. Your input stays in this browser.
Choose your settings
Change the direction or options only if you need to.
Processed locally in your browser. Avoid sharing the result if it contains private data.
How to use Unicode Escape Converter
- Paste your input or load the included example.
- Choose the conversion direction and check the expected format.
- Select Escape Unicode, then inspect the result or any validation message.
- Copy or download the output for your workflow.
Format and limitations
Encoding uses JavaScript UTF-16 escape sequences. Decoding also accepts brace-style code points such as \u{1F44B}. Other escapes are left unchanged.
Example input
Hello 👋
Practical guides
- JavaScript Unicode Escape Sequences: UTF-16 and Emoji — Use Unicode escapes correctly, understand surrogate pairs, and avoid executing escaped input as JavaScript.
- Unicode Code Points vs UTF-16 Code Units vs Graphemes — Understand why JavaScript string length differs from visible character count for emoji and combining marks.
Does this tool upload my input?
The transformation runs in your browser. This tool does not send input to a conversion API. Browser memory limits still apply; split very large inputs into manageable batches.