JSON Stringify
Turn JSON into one escaped string you can paste into code, an API call or a config value.
Add JSON and click Convert to see the string here.
Everything runs in your browser, and your data never leaves your device.
How JSON Stringify works
Converts JSON into one escaped string, the same as JSON.stringify in JavaScript. JSON is minified first. Then quotes and backslashes are escaped and the result is wrapped in double quotes.
Input to JSON Stringify
- JSON text or a file with
.jsonor.txtextension.
Output from JSON Stringify
- A one line string, like
"{\"id\":1}", that you can paste into code or a JSON value.