Beautify messy JSON, minify it for production, and find syntax errors by line and column — all in your browser.
Paste your JSON into the input box (or click “Sample” to try it).
Click Beautify to indent it, or Minify to strip all whitespace.
If the JSON is invalid you’ll see the exact line and column of the problem.
Copy the result or download it as a .json file.
It re-indents JSON so it is easy to read (beautify), or removes all whitespace so it is as small as possible (minify), and checks that it is valid JSON.
No. Formatting and validation happen entirely in your browser, so API keys or private data in your JSON stay on your device.
The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys and comments — none of which are allowed in standard JSON.