JSON Unescape

Paste an escaped JSON string, with or without its quotes, and read it as normal text: \n becomes a line break, \" a quote and \u0928 the Hindi letter it stands for. Logs and message queues often hold JSON that was escaped twice; the tool can unwrap every layer until you reach the readable object.

Action

Log lines often hold JSON that was encoded twice; this unwraps every layer.

JSON string
Text

Processing runs in your browser. What you type never leaves this device.

Features

  • Accepts the string with or without quotes

  • Decodes \n, \t, \", \\ and \uXXXX

  • Unwraps strings escaped more than once

  • Tries to repair unescaped inner quotes

  • Runs in your browser

Where escaped JSON shows up

Application logs

Loggers often store a JSON payload as an escaped string inside another JSON line. Unescape it, then format it with the [JSON formatter](/tools/json-formatter).

Webhook and queue payloads

Messages from SQS, Kafka or webhooks can carry a body string that is itself JSON.

Copying from code

Turn a string literal from source code back into the text it represents.

Unescaping, step by step

Double-escaped JSON

When JSON is turned into a string and then into JSON again, quotes pile up as \\\". With "Unwrap strings escaped more than once" on, the tool keeps decoding while the result is still a quoted string.

Related tools

JSON escape goes the other way.

JSON Unescape - FAQ