Paste escaped/stringified JSON (e.g. "{\"abc\":123}" or {\"abc\":123}) to unwrap it into clean, formatted JSON.
Why JSON Gets Double-Encoded (and How Unescaping Fixes It)
When working with webhooks, message queues (SQS, Kafka, RabbitMQ), database text columns, or structured application logs, it is very common to find a JSON payload stored inside another JSON string - for example "{\"user\":\"alice\",\"id\":42}". Because it was serialized twice, copying that value out gives you escaped quotes (\"), escaped backslashes (\\), and literal \n characters that fail standard JSON validators. This tool recursively unwraps stringified/escaped JSON layers and formats the final object with clean 2-space indentation.
How Recursive Unwrapping Works
Quoted JSON Strings: If you paste "{\"a\":1}" (including outer quotes), JSON.parse() decodes the outer string into {"a":1} and then parses that inner string into a real JSON object.
Unquoted Escaped Snippets: If you copied only the text between outer quotes - such as {\"a\":1,\"msg\":\"hi\"} - the tool wraps it safely, unescapes the backslashes and quotes, and parses the resulting JSON automatically.
Multi-Layer Escaping: Even payloads escaped two or three times in nested logs are unwrapped step by step until a clean object or array is reached.
Common Scenarios & FAQ
Where does stringified JSON usually come from? Typical sources include Stripe/GitHub webhook payloads logged as strings, Redis cache entries, JWT claims containing serialized JSON, AWS CloudWatch logs, and JavaScript JSON.stringify(JSON.stringify(obj)) bugs.
What if my input is not valid JSON after unescaping? The tool displays a clear parse error message so you can spot a missing bracket, trailing comma, or truncated log line immediately.
Is it safe to paste production logs or API responses? Yes. All unescaping and pretty-printing run 100% locally in your browser without sending any data to a server.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.