Toolbox / Text to Unicode escapes Runs in your browser中文
Converter

Text to Unicode escapes

Convert text to UTF-16 escapes or Unicode code-point escapes and back.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Inspect UTF-16 or Unicode code-point escapes and decode them back to text.

Actions: Encode · Decode

Example

Choose code-point format and Encode: the emoji uses one \u{1f600} escape instead of a UTF-16 surrogate pair.

Example action and settings

Action: Encode
Escape format: Code point (\u{XXXXX})

Input / action

A😀

Result / expected behavior

\u{41}\u{1f600}

Available options: Escape format

Scope and limitations

  • Decoding supports \uXXXX and \u{XXXXX}, rejecting out-of-range code points and unpaired surrogates.

Common mistakes

  • This is not a general JSON string decoder: non-Unicode escapes such as \n are not turned into newlines.

Related tools

Text to binary Case converter

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.