Text Tools

Unicode Converter

Convert text to Unicode escapes and back: \uXXXX for JavaScript and JSON, U+XXXX code points, HTML entities or decimal code points. Emoji are handled correctly.

Direction
Format

Your text stays in this browser. It is never sent anywhere, saved or included in analytics.

How to use

  1. Choose Text → code to encode, or Code → text to decode.
  2. Choose the format.
  3. Type or paste into the box. The result updates right away.

Frequently asked questions

Why does one emoji become two \u codes?

JavaScript and JSON store characters beyond U+FFFF as a surrogate pair of two 16-bit units, for example 😀 is \uD83D\uDE00. U+ and HTML formats show the single code point, U+1F600.

What happens to text that is not a code when decoding?

It is kept as it is, so you can decode a sentence that mixes plain text and escapes. The \u{1F600} form is understood too.