Skip to content
TabKiwiTabKiwi

Unicode Escape Converter

Turn text into \u escapes for JavaScript, Java, Python, CSS or HTML, and unescape them back.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

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

  1. Choose Text → Escapes or Escapes → Text.
  2. Pick the escape syntax.
  3. Paste your text.
  4. 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.

More Developer tools

View all 91 →