What this tool does
The Unicode Converter uses for...of, codePointAt, and String.fromCodePoint to traverse by full Code Point instead of mistaking UTF-16 surrogates for two characters. The reverse transformation strictly validates the scope and rejects orphaned surrogates.
- Displays U+ representation, decimal value, UTF-8 Bytes and JavaScript Escape for each character.
- Supports recovering text from U+ sequences or JavaScript Unicode escapes.
- Input and results are only processed within the browser, and the generated escaped text is not executed.
How to use it
- Enter the Unicode text to be analyzed.
- Click Analyze Unicode to see character-by-character results.
- To reverse the conversion, enter U+ or an escape sequence.
- Copy the restore text after verification.
Common uses
- Check real Code Points for emojis and rare Chinese characters.
- Generates Unicode escape representations required for debugging.
- Understand the difference between UTF-16 and UTF-8 representations.
Privacy and security
Inputs and results are processed only in your browser's memory. Nothing is uploaded, sent to an online API, or stored automatically.
Unicode Converter Features
View encoding information one by one Unicode Code Point, and support U+ and JavaScript escape and reverse conversion. Useful for everyday development and debugging; results can be reviewed, copied, or downloaded immediately.
FAQ
Why do emojis only show up in one line?
The tool traverses through the full Code Point, correctly merging the UTF-16 surrogate pairs that make up the character.
Can all characters be written as U+XXXX?
Basic multilingual planes commonly use four digits; higher Code Points will naturally use five to six digits of hexadecimal.
Will reverse transformation execute JavaScript?
No. The page only parses supported escaped text, without using eval or new Function.
Will the content be uploaded?
No, Code Point and UTF-8 calculations are done entirely locally.