Unicode Escape
Convert plain text into Unicode escape sequences for source code, debugging, serialization, and inspection.
Unicode Escape tool
Choose whether to escape every character or only non-ASCII characters. Press Ctrl/Cmd + Enter to convert.
| Metric | Value |
|---|
Privacy: escaping runs locally in your browser. No text is stored or transmitted.
This tool converts characters into Unicode escape sequences. For code points above U+FFFF, JavaScript-style output uses surrogate pairs,
while code point mode uses a single \u{...} form.
Examples
- A → \u0041
- 안 → \uC548
- 😀 → \uD83D\uDE00 or \u{1F600}
FAQ
- What does Unicode escape mean?
It converts characters into escape sequences such as \u0041 or \u{1F600}, which are often used in source code and serialized text formats.
- What is the difference between \uXXXX and \u{...}?
\uXXXX uses four hexadecimal digits and may require surrogate pairs for characters above U+FFFF. \u{...} uses a code point form and can represent the full Unicode range directly.
- Can I escape only non-ASCII characters?
Yes. This tool lets you choose whether to escape only non-ASCII characters or all characters.
- Is my text stored?
No. Escaping runs locally in your browser and nothing is stored or transmitted.