Unicode Encode / Decode

Convert between text and \uXXXX escape sequences

How to use

Convert text and Unicode escape sequences to each other. Steps:

  1. Paste Chinese or text into the Input box.
  2. Click To Unicode to generate \uXXXX sequences.
  3. Click To Text to turn sequences back into text.
  4. Use Swap to exchange input and output quickly.

Tip: the generated sequences can be reused directly in Java or JS where escaping is needed.

FAQ

What are escape sequences good for?

In Java properties, some JSON configs, and JS strings, \uXXXX is often used to represent non-ASCII characters and avoid encoding issues.