Format, validate, and minify JSON instantly in your browser.
Validates JSON and pretty-prints it with proper indentation, or minifies it down to a single line. If the JSON is invalid, it shows the exact parse error so you can find and fix the problem.
Parsing and formatting happen entirely in your browser using JavaScript's built-in JSON support — nothing you paste is uploaded.
Strict JSON is a stricter format than a JavaScript object literal. These are the usual culprits:
{name: "x"} must be {"name": "x"}.// nor /* … */ is allowed anywhere in JSON.undefined, NaN, and Infinity aren't valid; a leading zero or a hanging decimal point breaks a number.Format makes JSON readable for debugging; Minify shrinks it for storage or transport, where every byte over the wire counts.