HomeUnicode and String Converter

Unicode and String Converter

Online string to Unicode encoding tool, supports bidirectional conversion between strings and Unicode encoding. Conversion supports setting whether to keep ASCII characters, supports processing multi-byte Unicode encoding

Conversion Options

Unicode and String Converter - Tool Introduction

Usage Instructions

Online string to Unicode encoding tool, supports bidirectional conversion between strings and Unicode encoding.

Conversion supports setting whether to keep ASCII characters, supports processing multi-byte Unicode encoding.

Input Instructions

Input Content
Enter the string or Unicode character encoding to convert.
Conversion Mode

Keep ASCII (0-127):Converts characters other than ASCII to corresponding Unicode characters, ASCII characters remain unchanged.

Keep Latin1 (0-255):Converts characters other than Latin1 to corresponding Unicode characters, Latin1 characters remain unchanged.

No Keep (Convert All):Converts all input characters to Unicode strings.

Conversion Instructions

String to Unicode

Convert the input string to Unicode using the selected mode.

  • If Unicode encoding is between 0-65535, it will be encoded as \uxxxx format.
  • If Unicode encoding is greater than 65535 (Unicode encoding exceeding 2 bytes), it will be encoded as \u{xxxx...} format.

Unicode to String

Convert the input Unicode characters to plain strings.

  • Supported Unicode character format is \uxxxx (where xxxx is a 4-digit hexadecimal character).
  • Or \u{x...} (where x... is a hexadecimal character with length >= 1).

Example

IN:asdf(hello)𠮷

OUT:asdf(hello)\u{20bb7}