JSON unescape

Paste an escaped JSON string, with or without the surrounding quotes, and get the original text back: line breaks, quotes, tabs and \u codes are turned back into characters.

How it works

  1. Paste your code

    Paste the code in the left box or open a file. No code to hand? Click Example.

  2. Instant result

    The result appears as you type. If there is an error, you see the line and character.

  3. Copy or download

    Copy the result with one click or save it as a file for your editor or project.

What does it convert?

Every escape that JSON knows: \", \\, \/, \b, \f, \n, \r, \t and \uXXXX, including emoji written as two \u codes. The conversion follows the JSON standard exactly, so \\n correctly becomes a backslash followed by an n, not a line break.

Error messages

A quote that isn't escaped, or an escape JSON doesn't know (such as \' or \x41), gives a message with the exact position. That helps when a log file or API response contains a string that won't parse.

To escape text, use JSON escape.

Frequently asked questions

Is the JSON unescape free?

Yes. The JSON unescape is completely free, with no account, sign-up or usage limit.

Is my code stored?

No. Your code is processed in your browser and is not sent to a server or stored.

Does it work on my phone?

Yes. The tool works in any modern browser on a phone, tablet or computer.