Unicode escape converter

Escape text as \uXXXX, \u{…}, &#x…;, or UTF-8 \xNN bytes — and read escapes back into text.

Direction

Escape writes text as code-safe escapes; unescape reads them back. Up to 100,000 characters.

Converted in this browser. Nothing is sent anywhere.

Unescape reads \uXXXX, \u{…}, &#x…;/&#…; entities, and \xNN byte runs. A \xNN run is decoded as UTF-8 — if the bytes are not valid UTF-8 they are shown as Latin-1 characters instead of failing. It cannot tell escapes apart from literal text that merely looks like one.

How to use

  1. Pick escape or unescape.
  2. Choose the escape format.
  3. Convert and copy the result.

What it supports

Escapes non-ASCII characters by default, or every character on request. Unescaping reads all four notations plus decimal entities; \xNN runs decode as UTF-8, falling back to Latin-1. Input up to 100,000 characters.

Related tools

Related guides