# Unicode Escape

Canonical: https://dev.eneawork.it/unicode-escape
Language: en
Updated: 2026-11-02
Author: Enea Zani (https://eneawork.it)

Convert text to \uXXXX escapes and back.

## What it does

Logs, JSON strings and source code often contain escaped Unicode. This converter turns accents, emoji and control characters into \uXXXX sequences and decodes them back, including surrogate pairs and code-point syntax.

## How to use

1. Choose escape or unescape.
2. Pick non-ASCII only or every character.
3. Copy the result or swap it back.

## FAQ

### How are emoji handled?

Character pairs outside the BMP are written as two UTF-16 surrogate escapes in minimal mode, so the output is valid JavaScript.

### What is the difference between the scopes?

Non-ASCII escapes only characters outside the printable ASCII range; all escapes every character, including spaces and letters.

### Which escape syntax can it decode?

\uXXXX, \u{XXXXX}, \xXX and the common \n, \r, \t, \\ sequences.

## Related tools

- [HTML Entities](https://dev.eneawork.it/html-entities)
- [URL Encoder](https://dev.eneawork.it/url-encoder)
- [Base64 Encoder](https://dev.eneawork.it/base64)

## Machine-readable

- Tool catalogue: https://dev.eneawork.it/tools.json
- Full AI context: https://dev.eneawork.it/llms-full.txt
- Privacy: https://dev.eneawork.it/privacy
- This page in HTML: https://dev.eneawork.it/unicode-escape
- Italian version: https://dev.eneawork.it/it/unicode-escape
