Skip to content
aiformatting

Text tools for people in a hurry

Escape & Encode /

JSON Unescape

JSON string

Paste a JSON string, with or without its quotes. Escapes, \uXXXX and surrogate pairs are decoded as you type.

Text

About JSON Unescape

JSON Unescape decodes a JSON string back into the text it represents. Escaped quotes and backslashes, \n line breaks, \t tabs and \uXXXX escapes, including the surrogate pairs used for emoji, become real characters as you type.

Paste the string with or without its surrounding double quotes. When something cannot be decoded, such as an unknown escape or a \u escape with fewer than four hex digits, the tool names the problem and points to its exact line and column instead of guessing.

Decoding runs entirely in your browser, so private payloads never leave your device. Swap sends the decoded text to JSON Escape when you need to encode it again.

Frequently asked questions

What does unescaping a JSON string do?

It reverses JSON string escaping: \n becomes a real line break, \" becomes a double quote, \\ becomes a single backslash and \uXXXX becomes the character it names. Use it to read a string copied from a log, an API response or a configuration file.

Do I need to paste the surrounding quotes?

No. If the input, ignoring leading and trailing whitespace, starts and ends with a double quote, it is read as a complete JSON string literal. Otherwise, including when a comma or colon follows the closing quote, everything you paste is treated as the inside of the string.

How are emoji written as two \u escapes decoded?

Characters outside the Basic Multilingual Plane, such as most emoji, are written in JSON as two escapes called a surrogate pair, for example \ud83c\udf89. The tool joins each pair back into the single character it stands for. Hex digits may be upper or lower case.

What happens if the input contains an invalid escape?

The output is replaced by a short problem note that names the issue, such as an unknown escape like \q or a \u escape with fewer than four hex digits, with its line and column. The Jump button selects the exact characters in the input so you can fix them.

Why does a raw double quote cause an error?

Inside a quoted JSON string an unescaped double quote ends the string, so anything after it is not part of the value. This usually means two strings or a whole key and value were pasted. Remove the outer quotes, or escape the inner quote as \".

Is the JSON I paste sent to a server?

No. Decoding happens in your browser and nothing is uploaded, logged or stored, so you can use it with private API payloads.

  • Markdown to HTML

    Convert Markdown to clean, sanitized HTML with a live preview. GitHub tables, task lists and footnotes included.