Code and data · UnicodeUnicode Escape and Unescape \u

Paste text where letters appear as \u0418\u0432\u0430\u043d, \xd0\x98 or И and see what it says. Formats are detected on their own and can be mixed. The reverse turns text into escape sequences for JSON, JavaScript, Python, HTML or CSS.

Text is processed in your browser and goes nowhere

01Decode02Escape03Characters04Formats05Questions06Related
01

formats are detected on their own and can be mixed
Input · text with \u, \x, &#, U+
Example
Result
read only
{"city":"Красноярск","note":"темп. −30° 🥶"}
Found\uXXXX× 16&#x…;× 1replaced 17errors 0
03

Characters

the result, 43 characters
CharU+\u · JSON&#x;&#;UTF-8 bytes
Click any cell to copy the code. Repeats are not merged: this is the string, character by character.
04

Formats

where each one is used — with “И” and 😀

\uXXXX

JSON · JS · Java · C#

Four hex digits. Characters above U+FFFF take a surrogate pair.

И\u0418
😀\ud83d\ude00

\u{…}

ES6 · Rust · Swift

The whole code in braces, no surrogate pairs.

И\u{418}
😀\u{1f600}

\U and \x

Python · C

\U takes eight hex digits; \x is single UTF-8 bytes, the way Python prints bytes.

И\u0418 · \xd0\x98
😀\U0001f600 · \xf0\x9f\x98\x80

&#…;

HTML · XML

A numeric reference: hexadecimal with x, or decimal.

ИИ · И
😀😀 · 😀

U+

Documentation

How Unicode tables and references write a code — not program code.

ИU+0418
😀U+1F600

CSS \…

The content property

A backslash and hex. A space follows the code if a hex digit or a space comes next.

И\418
😀\1f600
05

Frequently asked questions

Paste the text into the Decode field: sequences like \u0430 are replaced with letters at once and the rest of the text stays as it was. \u0430 is the Cyrillic “а”, \u00e9 is “é”. JSON and JavaScript write characters outside basic Latin this way: four hexadecimal digits of the character’s Unicode number. Any language works — Cyrillic, accented Latin, Greek, Chinese or emoji.

Updated