EditSafely

UTF-16 Decode a String

Decode UTF-16 hex code units back into a string.

Runs on your device, nothing uploaded

Try:

0 chars · 0 lines

Output

Decode UTF-16 hex code units back into a string.

Type or paste above to see the result here.

Example: Decode

What you paste never leaves this tab

UTF-16 Decode a String is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use UTF-16 Decode a String

  1. 1. Paste the UTF-16 hex code units. Paste the code units in hex: separated by spaces or commas, as \uXXXX escapes, with 0x or U+, or as one run like d83dde00 that is read four digits at a time.
  2. 2. Read what the tool computes. UTF-16 Decode a String reads each 16-bit hex value, handling surrogate pairs for characters outside the basic multilingual plane, and reassembles the original text.
  3. 3. Copy the decoded text. Copy the readable string out of the output pane, now showing the actual characters, including accented letters or symbols the code units represented.

When to use UTF-16 Decode a String

UTF-16 Decode a String turns a list of hexadecimal UTF-16 code units back into readable text. Use it whenever you are inspecting raw UTF-16 data, such as from a debugger, a binary dump, or a Windows API trace, and need to see what text it actually encodes.

  • Reading code units from a memory dump. You are debugging a native application and dumped a wide string as raw 16-bit hex values from memory, and want to see the actual text those values represent.
  • Verifying a surrogate pair encodes the right emoji. A character outside the basic multilingual plane, like certain emoji, encodes as a surrogate pair in UTF-16, and decoding the two hex code units confirms which character it represents.
  • Checking a Windows API string trace. A Windows API call logs wide-character strings as hex code units, and decoding them lets you read the actual file paths or messages being passed.
  • Studying UTF-16 encoding for a course. You are learning how UTF-16 encodes characters beyond the basic multilingual plane and want to manually decode sample code unit sequences to see the mechanism at work.

Examples

Decode

Input

0041 00c9

Output

AÉ

A surrogate pair

Input

\ud83d\ude00

Output

😀

One run of hex

Input

d83dde00

Output

😀

About the UTF-16 Decode a String tool

UTF-16 Decode a String is a free online tool that works entirely inside your web browser. Decode UTF-16 hex code units back into a string. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 159 String utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

There is nothing to configure. Provide the input and the result appears on its own. 3 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Does UTF-16 Decode a String cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.