Loading the tool…
About the JSON Formatter & Validator
Paste JSON to validate it, pretty-print it with 2 or 4 spaces or a tab, minify it or sort the keys. If the JSON is invalid you get the parser’s error message so you can find the problem.
How to use it
- Paste your JSON into the left box.
- Press Format, Minify or Validate.
- Copy the result or fix the reported error.
Frequently asked questions
Is my JSON sent to a server?
No. It is parsed with your browser’s built-in JSON parser, so API keys or private data never leave your device.
Why does valid-looking JSON fail?
The usual causes are trailing commas, single quotes, unquoted keys and comments. JSON allows none of them.
Related tools
Results are estimates for general information. For financial, tax, medical or legal decisions, check with a qualified professional.