en

Unicode escape

Convert text to Unicode escapes (\uXXXX) and back - locally in your browser, with no upload.

Running locally on your device ...

What to escape
  • Non-ASCII only
  • All characters

Running locally on your device ...

0%

Is my file uploaded?

No. Everything runs in your browser - your file never leaves your device. How this is verifiable

No upload100% local
Your content stays with youno third-party access
Hosted in GermanyGlobal Content Delivery
Independently auditedTLS A+ · HTTP headers A+

In source code, JSON or configuration files special characters are often written as a Unicode escape: an umlaut like ä then appears as \u00e4. This keeps the text limited to pure ASCII and avoids encoding problems when exchanging it between systems. This tool converts both ways: text becomes escapes, escapes become readable text again.

The direction is detected automatically: if the input contains \uXXXX or \u{...} sequences, they are decoded; otherwise the text is encoded. By default only characters outside ASCII are escaped (umlauts, accents, emojis); with the "All characters" option every character is escaped. Characters outside the basic plane (such as emojis) are represented as a surrogate pair of two \uXXXX, exactly like in JavaScript.

The whole conversion runs entirely locally in your browser in pure JavaScript - your text is not uploaded, not stored, and no foreign library is loaded from a CDN. You can download the result as a text file or copy it straight out.

Specifications

Specifications
Input formatsText input
Output formatTXT
Batch processingNo
ProcessingLocally in your browser (JavaScript)
File uploadNone

In 3 steps

  1. Paste text or \uXXXX escapes into the text field.
  2. Optionally choose "All characters" instead of "Non-ASCII only".
  3. Read the result or download it as a text file.

Limitations: It uses \uXXXX escapes (and \u{...} when decoding), as common in JavaScript and JSON. Encoding is via UTF-16 code units, so characters outside the basic plane take two escapes. Other escape forms (such as \xHH or \NNN) are not produced. Very large texts are limited by your device memory.

FAQ

Is my text uploaded?

No. The conversion runs entirely locally in your browser; your text never leaves your device and is not stored.

Does the tool detect the direction automatically?

Yes. If the input contains \uXXXX sequences it decodes; otherwise it encodes the text.

What does "All characters" do?

Then every character is written as \uXXXX, including ordinary letters - useful when the whole text must be ASCII-safe.

Do emojis work?

Yes. Emojis are encoded as a surrogate pair of two \uXXXX and reassembled correctly when decoding; the \u{...} form is read too.

Related tools

Escape JSON · Encode HTML · Encode URL · Text to ASCII codes · ROT13 cipher