~/tools/-json-unstringify-
JSON tool - JSON Unstringify

$ JSON Unstringify & Unescape

Paste an escaped JSON string like "{\"id\":42}" and get the original, readable JSON back.

// controls

Stringified input

Paste an escaped JSON string to get the original JSON back.

Mode
StatusUnescaped and parsed back into JSON.
vultio · -json-unstringify-

Parsed output

The original value, pretty-printed.

{
  "event": "user.created",
  "user": {
    "id": 42,
    "name": "Ada"
  },
  "tags": [
    "beta",
    "eu"
  ]
}
§ 01
context

Why use an online JSON unstringify tool

JSON Unstringify reverses JSON.stringify: you paste an escaped JSON string such as "{\"id\":42}" and get the original object back, pretty-printed. It is the quickest way to read JSON copied from logs, database text columns, queue messages or Lambda event bodies, where every quote shows up as \".

The tool parses the string literal first and then keeps parsing while the result is still a string that contains JSON. That handles double- and triple-encoded payloads in one step, and it also accepts escaped JSON pasted without its surrounding quotes.

It never strips backslashes with search-and-replace. A real JSON parser decides which backslash belongs to which layer, so Windows paths, regexes and quotes inside values survive intact.

§ 02
scenarios

JSON unstringify tool use cases

01 →Read escaped JSON copied from application logs or a log aggregator.
02 →Decode a JSON document stored as text in a database column.
03 →Inspect the body of an AWS API Gateway / Lambda event, which arrives as a string.
04 →Unwrap the Message field of SNS notifications delivered to SQS.
05 →Fix double-encoded API responses while you track down the extra JSON.stringify.
06 →Turn an escaped string literal from source code or a fixture back into editable JSON.
§ 03
examples

JSON unstringify tool examples: input and output

Unescape a JSON string

$ input
"{\"id\":42,\"name\":\"Ada\"}"
↳ output
{ "id": 42, "name": "Ada" }

Escaped JSON without the outer quotes

$ input
{\"ok\":true}
↳ output
{ "ok": true }

Escaped plain text

$ input
"Line 1\nLine 2"
↳ output
Line 1 Line 2
§ 04
troubleshooting

Common JSON unstringify tool errors and how to fix them

! Unexpected token \ in JSON at position 1

cause:JSON.parse was called on text that is an escaped string, not an object, or the outer quotes were removed by hand.

fix:Paste the value as-is: the tool accepts it with or without the outer quotes and decodes the right number of times.

! Bad escaped character

cause:A backslash is followed by a character that JSON does not allow, often because the value was copied from a source that already removed one layer of escaping.

fix:Copy the raw value again from the original source rather than from a rendered view.

! Unterminated string / unexpected end of JSON input

cause:The value was truncated, which is common with long log lines.

fix:Retrieve the full value; a truncated escaped string cannot be decoded reliably.

§ 05
workflow

How developers use the JSON unstringify tool in practice

→ Decode in the tool, fix in the code

Unstringifying is ideal for reading a payload. If your own API produces escaped JSON, remove the extra serialization step at the source instead of decoding on every consumer.

→ Watch the layer count

The status line tells you how many levels were decoded. More than one level usually means something in the pipeline stringifies twice.

§ 06
tradeoffs

When not to use the JSON unstringify tool

01 →Do not use it on data you cannot share with a browser tab on your machine; nothing is uploaded, but screenshots and clipboards still leak.
02 →Do not rely on manual unescaping inside production code; parse with JSON.parse or json.loads instead.
§ 07
limits

JSON unstringify tool limits and implementation notes

~ Up to five layers

Decoding stops after five nested layers, which is far beyond what real systems produce, to avoid surprises with adversarial input.

~ Strict JSON escapes only

Escapes from other languages, such as single-quoted strings or \x41 hex escapes, are not valid JSON and will be reported as errors.

§ 08
read more

Related guides

§ 09
references

Standards & references

§ 10
toolbox

Related developer tools

§ FAQ
questions

Frequently asked questions about the JSON unstringify tool

What does unstringify mean?

It is the reverse of JSON.stringify applied to a JSON document: the escaped string is parsed back into the original value. In code it is JSON.parse on the string, repeated if the content is still a JSON string.


How do I remove backslashes from JSON?

Paste the escaped value into this tool. It parses the string with a real JSON parser instead of deleting backslashes, so quotes and backslashes that belong to the data are kept correctly.


What is double-encoded JSON?

JSON that was stringified twice, so the result is a string containing an escaped string containing the object. You see it as \\\" sequences. The tool decodes every layer and reports how many it removed.


Do I need to include the surrounding quotes?

No. Escaped JSON pasted with or without the outer double quotes is accepted.


Is my data sent to a server?

No. Decoding runs entirely in your browser with the native JSON parser.