JSON Formatter & Validator
Pretty-print, minify and validate JSON.
Something not working right?
About this json formatter & validator
Paste JSON to format it with clean indentation, minify it for production, or validate it and see exactly what's wrong. Everything runs locally in your browser, so it's safe for private data.
How to use it
- 1Paste your JSON into the input box.
- 2Click Format, Minify or Validate.
- 3Copy the result or fix the error shown.
Frequently asked questions
Is it safe to paste sensitive JSON?+
Yes. The JSON is parsed by your own browser and never uploaded anywhere.
Why is my JSON invalid?+
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys and comments — none of which are allowed in standard JSON.
What does minify do?+
It removes all unnecessary whitespace so the JSON is as small as possible, which is useful for APIs and config files.