What it does
Paste any JSON and either pretty-print it with 2-space indentation, or minify it down to a single line. If the JSON is invalid, you get a clear error message pointing at the problem instead of a cryptic browser console error.
Try it
How it works
This tool simply uses the browser's built-in JSON.parse() to validate and parse the input, then JSON.stringify() — with an indent of 2 for pretty-printing, or no indent for minifying — to produce the output. Any parse error thrown by JSON.parse() is displayed as-is, which usually includes the position of the problem in the string.
Nothing is sent anywhere — parsing happens entirely in your browser.