Home/Encoding Tools/Unicode converter

Unicode encode / decode

Unicode Converter

Turn text into unicode escapes or decode them back instantly.

Encoding 0 → 0 bytes 0 → 0 chars
Escape style
InputSupports \\uXXXX, \\u{X}, \\UXXXXXXXX, \\xXX
OutputInstant preview
Unicode safe Live as you type Escapes all emojis

How it works

Converts characters to escaped unicode sequences (\\uXXXX or \\u{X}) or decodes those escapes back to text. Handles surrogate pairs so emojis and extended symbols survive round-trips.

  • Toggle \\uXXXX vs \\u{X} to match JSON or modern JS syntax.
  • Invalid escapes throw a clear error so you can fix malformed sequences.

Quick examples

Encode emoji
Snowman ☃ and smile 😀
Snowman \\u2603 and smile \\uD83D\\uDE00
Decode escapes
\\u0043\\u006F\\u0064\\u0065 \\uD83D\\uDCBB
Code 💻

Leave \"Only non-ASCII\" on to keep plain letters untouched while escaping symbols.

Mini FAQ

When to use \\u{X} vs \\uXXXX?

\\u{X} is concise and supported in modern JS; \\uXXXX is JSON-friendly and works in older parsers.

Why keep only non-ASCII on?

It preserves readable ASCII while escaping only characters that may break legacy systems.

Decode error?

The input likely has a malformed escape (bad hex or missing brace). Fix and retry.