Unicode Escape

Escape characters into Unicode code point form.

Tool Panel

Loading tool...
About Unicode Escape

Unicode escaping writes characters in the \uXXXX form, common in JSON and JavaScript. BMP characters (U+0000 to U+FFFF) become \uXXXX Supplementary-plane characters (such as emoji) become \u

  • 1

    Characters inside the BMP become \uXXXX — four digits, lowercase hex, zero-padded. The character 中 is \u4e2d.

  • 2

    Code points beyond the BMP (emoji and similar) become \u{1f600} code point notation instead of a surrogate pair, which is where this differs from most JSON escaping.

  • 3

    Conversion walks code points, not UTF-16 code units, so one emoji never becomes two escapes like \uD83D and \uDE00.

Related tools

View all
Base64 Encode / Decode
Encode & Crypto

Base64 Encode / Decode

Encode text to Base64, or decode it back.

Encode & Crypto
Base64URL Encode
Encode & Crypto

Base64URL Encode

Produce URL-safe Base64 without padding characters.

Encode & Crypto
Base32 Encode / Decode
Encode & Crypto

Base32 Encode / Decode

Encode or decode text using the Base32 alphabet.

Encode & Crypto
Base36 Encode / Decode
Encode & Crypto

Base36 Encode / Decode

Encode or decode numbers and text in Base36.

Encode & Crypto
Base58 Encode / Decode
Encode & Crypto

Base58 Encode / Decode

Encode or decode with Base58, the alphabet Bitcoin addresses use.

Encode & Crypto
Binary Encode
Encode & Crypto

Binary Encode

Turn text into its 0 and 1 representation.

Encode & Crypto