Toolvist

Text to Unicode Converter

Convert text into Unicode escape sequences such as \u0041 for use in code and configs.

Free Text to Unicode Converter

The Text to Unicode Converter turns characters into Unicode escape sequences for use in JavaScript, JSON, CSS, or HTML. It handles astral characters correctly with surrogate pairs or code-point notation.

How to Use

Type or paste text and choose an output format. The converter emits the escape sequence for every character, or only for non-ASCII characters if you prefer.

  • Output as \uXXXX, \u{XXXXX}, or HTML &#xXXXX; entities
  • Handles astral characters with surrogate pairs
  • Option to escape ASCII only or all characters
  • Live conversion as you type
  • Runs entirely in your browser

Related Text Tools

Browse all Text Tools →

You might also need

Tools from other categories that people pair with the Text to Unicode:

Browse the full tool directory →