JSON Formatter
Format, validate and minify JSON with clear error messages.
About this tool
Paste JSON to pretty-print it with indentation, minify it into one line, or validate it. If the JSON is invalid, you get the error message from the parser so you can find the problem quickly.
How to use it
- Paste JSON into the input box.
- Click Format to beautify or Minify to compress.
- Copy the result or fix the reported error.
Frequently asked questions
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. JSON is stricter than JavaScript object syntax.
Is my data sent to a server?
No. Parsing and formatting happen in your browser.