About Unicode Converter
A Unicode converter helps when text arrives as codes instead of characters: a JSON response full of \u4e2d\u6587, a Java properties file, a URL or log with %E4%B8%AD in it, or an emoji you need to write into source code. Paste the codes and the converter works out the format on its own, whether they're \u escapes, &# codes, U+ code points or UTF-8 bytes.
Encoding goes the other way. You can write text as \uXXXX escapes, where emoji and other characters above U+FFFF become surrogate pairs or \u{…}, as decimal or hex HTML codes, as U+ code points, as UTF-8 bytes in hex or %XX form, or as UTF-16. A table lists every character with its code point and UTF-8 bytes, which makes a stray zero-width space or a look-alike letter easy to find. It all runs in your browser.
How to use Unicode Converter
- 1Paste text or codes
Plain text to encode, or escapes, codes or bytes to decode.
- 2Pick the output format
Choose \uXXXX, decimal or hex HTML codes, U+ code points, UTF-8 bytes or UTF-16.
- 3Check the table
Each character is listed with its code point and UTF-8 bytes.
- 4Copy the result
Copy the converted text or codes.
Why use Cubfile for this
- Format detected for you
Paste \u escapes, &# codes, U+ points or UTF-8 bytes and they're decoded without choosing a mode.
- Emoji handled properly
Characters above U+FFFF become surrogate pairs or \u{…}, so nothing is lost on the way back.
- UTF-8 and UTF-16 bytes
See UTF-8 bytes as hex or as %XX, the form used in URLs.
- Character table
Code point and UTF-8 bytes for every character in the text.