Unicode Escape Converter
Convert text into JavaScript \uXXXX escapes and unescape back.
Your input is processed locally in this browser tab.
How to use Unicode Escape Converter
Paste text to turn non-ASCII characters and backslashes into lowercase or uppercase \uXXXX escapes.
Switch Direction to decode \uXXXX, \u{XXXXX}, and \xXX escape sequences back to literal text.
Copy or download the escaped string.
Frequently asked questions
Are astral emoji supported during both encode and decode?
Yes. UTF-16 surrogate pairs encode and decode seamlessly alongside braced \u{1F98A} escapes.
Are literal ASCII printable characters preserved?
Printable ASCII stays untouched except backslashes, which escape to \u005C for clean round-trips.