Antpact Toolbox
中文
Home › Utilities & Developer › Unicode Converter

Unicode Converter

Convert text to/from \uXXXX (UTF-16) and \UXXXXXXXX (UTF-32).

Privacy: this tool runs entirely in your browser — files are never uploaded, and data is gone when you close the page.

How to use

  1. Pick a direction.
  2. Paste text for live escape or unescape.

FAQ

\u vs \U?

\uXXXX is UTF-16 (4 hex digits); \UXXXXXXXX is UTF-32 (8 hex digits).

Why is an emoji two \u?

Emoji are beyond BMP, so they use two UTF-16 code units (a surrogate pair).

About this Unicode Converter

Standard escapes; chars beyond BMP use a surrogate pair \uD83D\uDE00.