Home/Unicode Converter
Unicode

Unicode Converter

Convert between characters and \u escape sequences

Input
Plain text
Output
Unicode Escape

Overview: Unicode Converter is a two-way tool between characters and \u escape sequences. It converts non-ASCII characters (Chinese, Japanese, Korean, emoji, and so on) into \uXXXX hexadecimal escape form, and can also decode the escape sequences back into the original characters. It is often used to work around encoding compatibility issues and to inspect string literals during debugging.

How to use: Step 1 — type text containing Chinese, Japanese, emoji, and so on into the left panel, or click "Sample" to load an example. Step 2 — characters with code point 128 or above are converted to \uXXXX form in real time, while ASCII characters are left untouched. Step 3 — to go the other way, paste a string that contains \uXXXX escapes on the right and the tool decodes it into readable characters. Step 4 — the result can be copied or dropped straight back into your source code.

Typical scenarios: Store Chinese strings in JavaScript / Java / Python source code as \u escapes to avoid encoding-related mojibake in different environments; when debugging JSON API responses, decode \u4e2d\u6587 back to "中文" to verify content; handle configuration files (such as *.properties) that require ASCII-compatible strings; parse log entries where Chinese error messages were escaped; translate localisation strings in game scripts.

Technical notes: Escapes use four hex digits (the Basic Multilingual Plane); ASCII characters below code point 128 are not touched. Characters outside the BMP (some emoji with code points beyond U+FFFF) are represented as UTF-16 surrogate pairs — two consecutive \uXXXX sequences — and combined back automatically during decoding. Other formats such as \xNN (Latin-1 byte escapes) or Python-style \U000XXXXX are not handled.

Privacy: All conversion runs locally in your browser. The text you enter is never uploaded, so it is safe to use with localisation resources or sensitive source code strings.

Frequently Asked Questions

How do I use Unicode Converter?
Step 2 — characters with code point 128 or above are converted to \uXXXX form in real time, while ASCII characters are left untouched. Step 3 — to go the other way, paste a string that contains \uXXXX escapes on the right and the tool decodes it into readable characters.
What can Unicode Converter do?
Typical scenarios: Store Chinese strings in JavaScript / Java / Python source code as \u escapes to avoid encoding-related mojibake in different environments; when debugging JSON API responses, decode \u4e2d\u6587 back to "中文" to verify…
Is my data private when I use Unicode Converter?
The text you enter is never uploaded, so it is safe to use with localisation resources or sensitive source code strings. The text you enter is never uploaded, so it is safe to use with localisation resources or sensitive source code strings.
What technical details should I know about Unicode Converter?
Characters outside the BMP (some emoji with code points beyond U+FFFF) are represented as UTF-16 surrogate pairs — two consecutive \uXXXX sequences — and combined back automatically during decoding. Other formats such as \xNN (Latin-1 byte escapes) or Python-style \U000XXXXX are not handled.