Unicode Converter Tool
Convert Chinese text to Unicode escapes and back, supporting both \uXXXX and %uXXXX formats with automatic surrogate pairs for characters outside the BMP. Everything runs locally in your browser.
About This Tool
The Unicode converter switches between readable text and Unicode escapes. APIs frequently return strings like \u4f60\u597d that are almost impossible to read directly, while configuration files, regular expressions and i18n bundles often need Chinese characters escaped to avoid encoding problems. This tool handles both directions on one page.
Besides the standard \uXXXX form it also supports the legacy %uXXXX notation. Characters outside the BMP such as emoji are split into surrogate pairs automatically and reassembled correctly on the way back.
Key Features
Two-way conversion
Text to Unicode and Unicode to text switch on the same page.
Two escape formats
Supports \uXXXX and %uXXXX for modern and legacy systems.
Surrogate pairs handled
Emoji and rare characters split into high and low surrogates without data loss.
Runs locally
Conversion happens in your browser, nothing is uploaded.
When to Use It
Debug garbled responses
Turn escaped API output back into readable text to confirm the real content.
Generate i18n entries
Escape Chinese text before writing it into properties files or scripts.
Inspect obfuscated code
Decode escaped strings to reveal hidden Chinese messages.
How to Use It
- 1Choose Text to Unicode or Unicode to Text.
- 2Pick the \uXXXX or %uXXXX format your target system expects.
- 3Enter the content and click Convert.
- 4Copy the result into your clipboard or source file.
Frequently Asked Questions
Why do some characters produce two escapes?
Characters outside the BMP such as emoji are stored as a surrogate pair in UTF-16, so two \uXXXX sequences is the correct output.
Should ASCII characters be escaped too?
By default ASCII stays readable. Enable the ASCII escape option when the target environment requires pure ASCII.
