Unicode escape and unescape

Convert nine Unicode representations and strictly decode mixed escapes and UTF-8 bytes

Escape format

Plain text

Original characters without escape sequences.

Escaped text

Unicode escape sequences in the selected format.

What is Unicode escaping?

Unicode escaping converts characters into encoded sequences that represent their Unicode code points. This is essential when source code, configuration files, or data formats cannot contain certain characters directly.

Common escape formats

  • \uXXXX (UTF-16)
  • \u{XXXXX} (code point)
  • &#xXXXX;
  • &#DDDD;
  • U+XXXX code-point list
  • \xXX (UTF-8 bytes)
  • %XX (UTF-8 bytes)
  • \UXXXXXXXX
  • 0xXXXX code-point list

When to use this tool

  • Embedding non-ASCII characters in source code or config files that require ASCII-safe encoding
  • Debugging garbled text by inspecting the underlying Unicode code points
  • Converting between different escape notations when porting between languages or formats
  • Preparing text for JSON, HTML, or URL contexts that need entity-encoded characters

How it works

Type or paste plain text on the left and the tool escapes non-ASCII characters using the selected format. Paste escaped text on the right and it auto-detects and decodes all supported formats.

How to use

Choose an escape format, then edit either the plain-text or escaped-text panel. The opposite panel updates automatically; reset the example or copy either value from its own card controls.