Unicode Escape Converter

Encode text as Unicode escape sequences (\uXXXX) and decode them back.
Safe
Processing runs on your device, so input/output is not sent anywhere.

Notes

A Unicode escape sequence is an escape sequence used to represent characters in the Unicode character set. In JavaScript, a Unicode escape sequence is represented by\ufollowed by four hexadecimal digits.

For example, the stringHellocan be represented as follows:


\u0048\u0065\u006c\u006c\u006f

This is a hexadecimal representation of each character's Unicode code point, and
the Unicode code points for each character are:


H: U+0048

e: U+0065

l: U+006C

l: U+006C

o: U+006F

Unicode escape sequences are useful especially when character encodings differ.
For example, when working with an HTML page that contains a UTF-8 encoded string, using Unicode escape sequences to represent Unicode characters can help avoid character encoding issues.

Related Tools