Docelora
ToolsAboutContact
Developer tools

Unicode Escape Converter

Turn characters into escape sequences that are safe to put in source code, JSON, CSS or HTML – or decode escaped strings from logs and APIs back into readable text.

Quick answer: choose Encode or Decode, pick the format and paste your text. Decoding understands all formats at once, so you can paste mixed input.

Unicode Escape Converter

JS · JSON · Python · CSS · HTML · U+ · percent

Private: runs entirely in your browser. Nothing you type or paste is uploaded or stored.

Formats at a glance

Format“锓😀”
JavaScript\u00e9\u{1f600}
JSON\u00e9\ud83d\ude00
Python\u00e9\U0001f600
CSS\e9\1f600
HTML (hex)é😀
HTML (decimal)é😀
Code pointU+00E9U+1F600
Percent%C3%A9%F0%9F%98%80

Related tools

Frequently asked questions

What is a Unicode escape?

A way of writing a character using its code point in plain ASCII, such as \u00e9 for é, so it survives in files and systems that only handle ASCII.

What is the difference between the JavaScript and JSON formats?

Both use \uXXXX, but JSON cannot use \u{…}, so characters above U+FFFF such as emoji are written as two surrogate escapes (\ud83d\ude00).

How do I decode \u escapes?

Choose Decode and paste the text; every \uXXXX, \u{…}, \UXXXXXXXX, \xXX, &#x…;, &#…; and U+ sequence is converted.

Can it decode mixed formats?

Yes, all supported formats are recognised in the same input.

Why are emoji written as two escapes?

In UTF-16, which JavaScript and JSON use, characters above U+FFFF are stored as a surrogate pair.

What does “escape every character” do?

Normally only characters outside printable ASCII are escaped; this option escapes letters and digits too.

Does decoding change normal text?

No. Only escape sequences are replaced.

What is the CSS format for?

CSS escapes such as \2014 are used in content: properties and selectors.

Is é the same as é?

Yes – both are é. This tool writes numeric references; use the HTML Entity Encoder for named entities.

What does percent-encoding do?

It writes the UTF-8 bytes of each character as %XX, as used in URLs.

Are invalid escapes changed?

No. Sequences that do not form a valid code point are left as they are.

Which characters can be escaped?

Every Unicode code point from U+0000 to U+10FFFF.

Is it free?

Yes – no sign-up, no usage limits and no adverts inside the tool.

Do I need to install anything?

No. It runs in any modern browser on a phone, tablet or computer.

Is my text uploaded?

No. Everything is processed by JavaScript in this browser tab; nothing you enter is sent to Docelora.

Does it work on a phone?

Yes – the layout adapts to small screens and the buttons are sized for touch.

Can I copy the result?

Yes – use the Copy button under the result box, or select the text.

Does it work offline?

Once the page has loaded, the tool keeps working without a connection.

Which browsers are supported?

Current versions of Chrome, Edge, Firefox, Safari and Samsung Internet.

Is there a size limit?

Very large inputs are limited to keep your browser responsive; the limit is shown if you reach it.

Last reviewed: 14 November 2026.