Unicode Escape and Unescape
The Unicode escape tool converts characters into escape sequences for JavaScript, CSS, HTML or the U+ notation used in specifications, and converts all of those back to plain text. Emoji and other characters outside the Basic Multilingual Plane are handled as single characters rather than split into surrogate halves.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the Unicode Escape and Unescape
- Paste the text you want to escape, or an escaped string to decode.
- Choose the direction and, when escaping, the format your target language expects.
- Leave the scope on ASCII-only to keep ordinary letters readable in the output.
- Copy the result.
Example
Café
Caf\u00E9
Common use cases
- Making a source file ASCII-safe for a toolchain that mangles UTF-8.
- Writing an accented character into a CSS content property.
- Decoding a log line where non-ASCII text was escaped before being written.
- Finding the code point of a character to look it up in a specification.
Limitations and things to watch for
- JavaScript escapes use UTF-16, so a character outside the Basic Multilingual Plane becomes a surrogate pair — two \u escapes for one character. That is correct for JavaScript and looks surprising if you expected one.
- CSS escapes end with a trailing space to terminate the hexadecimal sequence. Removing it will change how the following character is interpreted.
- Unescaping recognises the common formats but cannot detect which one you meant, so a string mixing several notations is decoded by applying each pattern in turn.