Skip to content

Use this result well

Inputs that matter
Text or four-digit Unicode escape sequences, with Unicode Escape and the intended Encode/Decode direction selected.
Output to expect
Four-digit UTF-16 escapes or the decoded text, including surrogate pairs for characters such as emoji.
How it works
Encoding writes each UTF-16 unit as a four-digit escape. Decoding replaces those escapes once; ordinary text remains in place.
  • Escape conventions vary between JSON, JavaScript and other formats. This view does not parse an entire source document.
  • Keep the original text when exact emoji, combined characters or line endings matter.
  • Text input is limited to 2,000,000 UTF-16 units and each result to 20,000,000. Large conversions can be cancelled or retried.
  • Chains allow up to 12 steps. Intermediate previews are shortened; Copy retains the complete final result.
Was this tool helpful?

Reference & details

How it works

Match four hexadecimal digits

Each matching escape is replaced with the corresponding UTF-16 unit. Other input text remains in its original order.

Keep surrogate pairs together

Two adjacent escapes can restore the pair used by a supplementary character. The view does not repair missing or reversed surrogates.

Decode once

New escape-looking text produced by replacement is left for inspection. The operation does not execute the output or recursively decode it.

Updated: September 2026

Example Scenarios

Decode a letter and a CJK character together.

Input: \u0041\u4e2d

A中

Keep the surrounding text while replacing a four-digit sequence.

Input: Name: \u0041

Name: A

Recover a literal escape-looking sequence without automatically decoding it again.

Input: \u005cu0041

\u0041

FAQ

A lowercase u after a backslash, followed by exactly four hexadecimal digits. Hexadecimal letters may be uppercase or lowercase. Braced code-point syntax such as \u{1F600} is not expanded.

Yes. A matching high and low surrogate pair, such as the units U+D83D and U+DE00, reconstructs 😀. An isolated surrogate does not become a complete emoji.

No. Literal \n, \t and surrounding quotes are not interpreted as source syntax. Use \u000a for a line feed and \u0009 for a tab in this converter.

No. For example, \u005cu0041 becomes the literal text \u0041 after one pass. A second deliberate decode would then produce A.

No. Text outside a matching four-digit sequence stays in place, and matching sequences can occur inside a longer string. Use the appropriate parser to validate a complete source document.

About Unicode Escape Decoder

Replace four-digit Unicode escapes with their UTF-16 units and read the resulting text. The page opens with Unicode Escape and Decode selected. It performs one text replacement pass and does not parse a complete JSON or JavaScript string.