Documentation

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 \uxxxx and \u{xxxx} forms.
  • Also supports decimal code point lists and hex lists with U+ or 0x prefixes.

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 0 and 65535 are output as \uxxxx.
  • Code points above 65535 are output as \u{xxxx}.
  • Supports JavaScript escapes, Unicode code point lists, and UTF-8 byte array formats.

Unicode to String

  • Converts \uxxxx escapes 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.