Why format or validate JSON?
JSON produced by APIs or config files is often minified or hard to scan. Pretty-printing adds consistent indentation so nested objects and arrays are easy to read, while minifying strips whitespace for a compact payload. Validation catches syntax mistakes — like trailing commas or missing quotes — before they break your application.
How to use this tool
Paste JSON into the input box, then click Format to pretty-print it, Minify to compact it, or Validate to check it without changing the output. If the JSON is invalid, the line and column of the problem are shown whenever the browser provides that information.
Example
Formatting {"name":"DevRivet","active":true} produces indented, readable JSON.
FAQ
Is my JSON uploaded anywhere?
No. Formatting, minifying, and validation all run locally using your browser's built-in JSON engine.
Why does my JSON say invalid but looks fine?
Common causes are trailing commas, single quotes instead of double quotes, or unquoted property names — none of which are valid JSON, even though they're valid in JavaScript object literals.