WebTool

Unicode Escape Converter

Free online Unicode escape converter: text to \uXXXX and back, with correct UTF-16 surrogate pairs for emoji.

Privacy: all processing happens locally in your browser. Your input never leaves your device.

What is Unicode Escape Converter?

Unicode escapes (like \u4e2d) appear everywhere: JSON responses, .properties config files and source-code literals. When debugging an API you restore unreadable \u sequences to readable text, or convert text to escapes the other way to feed legacy ASCII-only systems — this tool does both. Characters beyond the BMP, such as emoji, are emitted correctly as UTF-16 surrogate pairs.

How to Use

  1. Paste text or a \uXXXX sequence
  2. Choose the conversion direction
  3. Copy the result

FAQ

Are \u4e2d and 中 the same thing?
Both are Unicode code point 20013 (中): the former is the JS/JSON hexadecimal escape, the latter the HTML decimal entity.
Why does an emoji convert into two \u sequences?
Characters beyond U+FFFF, such as emoji, are represented in UTF-16 as surrogate pairs, so they legitimately produce two \uXXXX escapes.

Related Tools

Last updated 2026-09-04