About Unicode and String Converter
This online tool converts strings and Unicode encodings in both directions. It supports keeping ASCII characters unchanged and handles multi-byte Unicode code points.
Input Notes
- Enter plain text or Unicode escape sequences.
- Supports both
\uxxxxand\u{xxxx}forms. - Also supports decimal code point lists and hex lists with
U+or0xprefixes.
Conversion Modes
- Keep ASCII (0-127): only converts characters outside ASCII.
- Keep Latin1 (0-255): only converts characters outside Latin1.
- No Keep (Convert All): converts every input character.
Conversion Rules
String to Unicode
- Code points between
0and65535are output as\uxxxx. - Code points above
65535are output as\u{xxxx}. - Supports JavaScript escapes, Unicode code point lists, and UTF-8 byte array formats.
Unicode to String
- Converts
\uxxxxescapes back to plain text. - Converts
\u{xxxx}escapes back to plain text. - Converts decimal and hexadecimal code point lists back to strings.
Common Use Cases
- Debugging Unicode escapes in frontend and backend code.
- Inspecting multilingual text, emoji, and extended characters.
- Learning Unicode code points and encoding behavior.