JSON ↔ String
Convert JSON to escaped string and back
Loading...
About this tool
Turn a JSON into an escaped string (with quotes and backslashes) and back again. Useful when you need to embed a JSON inside another JSON, in code or in a text field.
Instead of escaping quotes by hand, paste the content and switch between the two forms. Processing happens in the browser.
How to use
- Choose the direction (JSON to string or string to JSON).
- Paste the content into the text area.
- Convert and copy the result.
Frequently asked questions
Why escape a JSON?
To include it as a text value inside another JSON, in logs or in code, without breaking the syntax.
Does the data leave the browser?
No, everything is processed locally.
Does the tool validate the JSON?
Yes, the conversion fails if the input JSON is invalid.
Advertisement