How it works
How to use the String to JSON
Paste the string
With or without quotes.
Unescape
The JSON is decoded and pretty-printed.
Copy the JSON
Or open it in the formatter.
Fixing double-encoded JSON
Logs and message queues often store JSON inside a string, so every quote is escaped. This tool reverses that — it accepts the string with or without surrounding quotes — and pretty-prints the result when it is valid JSON.
Built for developers
Why developers use it
Private by design
Runs 100% in your browser. Nothing you paste is uploaded, logged or stored on a server.
Instant results
Output updates as you type, with precise error locations when something is wrong.
Works offline
Once loaded, the tool keeps working without a connection. Install it as an app if you like.
Free, no sign-up
No accounts, no limits, no watermarks.
FAQ
Frequently asked questions
Do I need the surrounding quotes?
No. Both "{\"a\":1}" and {\"a\":1} work.
Is my data uploaded anywhere?
No. Everything runs locally in your browser — nothing you paste or open is sent to a server, logged or stored. The tool keeps working offline once the page has loaded.
Keep going
Related tools
- JSON to StringConvert JSON into a string literal
- JSON to CSVConvert JSON arrays to CSV and CSV back to JSON
- JSON to XMLConvert JSON to XML and XML to JSON
- JSON to YAMLConvert JSON to YAML and YAML to JSON
- XML to JSONConvert XML to JSON and back
- YAML to JSONConvert YAML to JSON and back
- JSON FormatterFormat, validate and explore JSON
- JSON ValidatorFind and fix JSON syntax errors