Unicode Escape Encode / Decode

Convert text to \uXXXX JavaScript-style escapes and decode escape sequences back to Unicode.

About this tool

Encode non-ASCII characters as \uXXXX or \u{codepoint} escapes for JSON strings, i18n resource files, and log messages with escaped emoji. Decode escaped sequences back to readable Unicode text.

What you get

  • \uXXXX encoding for BMP code points
  • \u{codepoint} brace form for astral characters and emoji
  • Decoded Unicode text from escape sequences
  • Optional brace form toggle for code points above U+FFFF
  • Live encode/decode with copy button
  • Bidirectional mode switch

How to use

Paste text or escaped strings, toggle brace form for astral characters if needed, then copy the result.

Related searches

  • unicode escape
  • u escape decode

FAQ

How to convert text to Unicode escape sequences?

Paste text in Encode mode to get \uXXXX escapes for BMP characters; enable brace form for astral code points above U+FFFF.

How to decode \uXXXX escapes?

Paste escaped strings in Decode mode—including \u{...} forms—and copy the restored Unicode text including emoji.

What is the difference between \u and \u{ } escapes?

Classic \uXXXX covers code points up to U+FFFF. Brace form \u{1F600} handles supplementary characters like emoji in one escape.

When are Unicode escapes used in JSON?

JSON allows \u escapes for non-ASCII in strings. Logs, i18n files, and generated code often emit them for portability.

How to convert emoji to JavaScript Unicode escape sequences?

Paste the emoji string in Encode mode with brace form enabled and copy \u{...} sequences for source files or generated bundles.

By using this tool you agree to our Terms of Use and Privacy Policy. Results are provided as-is without warranty.