Skip to content
LovTools
EN

Unicode Escape Converter

Escape text as \uXXXX, \u{…}, CSS or HTML codes, and unescape it.

Processed locally on your device — nothing is uploaded.

About the Unicode Escape Converter

Source files, JSON and properties files sometimes need non-ASCII characters written as escapes. Choose a style — JSON/Java/JavaScript \uXXXX with surrogate pairs for emoji, ES6 \u{…}, Python \uXXXX and \UXXXXXXXX, CSS or HTML numeric references — and escape any text.

Unescape reverses all of these styles at once, plus \xXX and decimal HTML entities.

How to use the Unicode Escape Converter

  1. Choose Escape or Unescape.
  2. Pick an escape style.
  3. Paste text and copy the result.

Features

  • Batch files: run the tool on up to 200 files with the same settings and download every result as one ZIP
  • Six escape styles
  • Correct surrogate pairs
  • Unescapes mixed input
  • Keeps ASCII readable

Supported formats

  • Plain text

Frequently asked questions

Why is one emoji two \u escapes?

JSON and Java use UTF-16, where characters above U+FFFF need two code units (a surrogate pair).

Is my text sent anywhere?

No. Everything runs in your browser, so nothing you paste is uploaded or stored.

Added · Last reviewed · Maintained by Sohail Khax · How we test tools