About this tool
Source files, properties files and JSON sometimes need non-ASCII characters written as escapes. Pick the syntax for your language: \uXXXX with surrogate pairs for JavaScript and Java, \u{…} for modern JavaScript, \U for Python, backslash hex for CSS, or &#x; for HTML. Decoding understands all of these at once. Processing happens locally.
How to use Unicode Escape Converter
- Choose Text → Escapes or Escapes → Text.
- Pick the escape syntax.
- Paste your text.
- Copy the converted output.
Frequently asked questions
What are surrogate pairs?
JavaScript and Java store text in 16-bit units, so characters above U+FFFF, like most emoji, are written as two \u escapes.
Can I escape ordinary letters too?
Yes. Turn on Escape plain ASCII too and every character is escaped.