JSON Stringify
Turn JSON into an escaped string literal you can paste into code, or turn one back into JSON.
Runs entirely in your browser.
Stringify and Unstringify JSON
About JSON Stringify
Stringifying wraps JSON in quotes and escapes everything inside it, so the whole document becomes a single string value. That is what you need when JSON has to travel inside JSON, or be pasted into source code as a string literal.
Use Unstringify for the reverse: paste an escaped blob full of \" sequences - the kind that shows up in log output and error messages - and get readable JSON back.
Other JSON Tools
- JSON Formatter — beautify, minify and validate on one page
- JSON Minifier — strip whitespace to the smallest form
- JSON Validator — find the line and column of the first error
- Sort JSON Keys — alphabetise keys at every level
- JSON Compare — diff two JSON documents
- JSON Tree Viewer — browse a document as a tree