Unicode Converter Online

Convert text to Unicode escape sequences and back. Supports \\uXXXX format.

Free online Unicode text converter

Use this Unicode converter to turn plain text into Unicode escape sequences and decode them back again. It is useful for developers who work with JavaScript or Python string literals, JSON files, and encoding or internationalization bugs.

Input: Hello
Unicode: \u0048\u0065\u006c\u006c\u006f

How Unicode escape sequences work

A Unicode escape sequence writes a character as \uXXXX, where XXXX is the character's four-digit hexadecimal code point. For example, the letter A is code point U+0041.

Common Unicode converter use cases

  • Build or debug JavaScript and Python string literals that use escapes.
  • Read and write JSON files that store Unicode characters as escapes.
  • Inspect non-ASCII text when tracking down encoding problems.

FAQ

What is a Unicode escape sequence?

A Unicode escape sequence represents a character as a backslash, the letter u, and four hexadecimal digits. For example, the letter A is code point U+0041.

What is the difference between Unicode and UTF-8?

Unicode is the character set that assigns a unique code point to every character. UTF-8 is a byte encoding used to store those code points.

Where are Unicode escapes used?

Unicode escapes are common in JavaScript and Python string literals, JSON files, regular expressions, and when debugging encoding issues.

Is this Unicode converter private?

Yes. The conversion runs locally in your browser with JavaScript, so your text is not uploaded to a server.