JSON Formatter
Pretty-print, validate and minify JSON in your browser. See the line and column of syntax errors, sort keys and copy or download the result. Safe for API responses and config files: nothing is uploaded.
Runs locally · nothing uploaded
How to use the JSON Formatter
- 1
Paste JSON into the input box, or choose or drop a .json file from your device.
- 2
Read the validation result: errors show the exact line and column.
- 3
Choose 2 or 4 spaces, tabs or Minify, optionally sort keys, then copy or download the result.
What happens to your data
Your JSON is parsed and formatted by your browser. Files are read locally. Nothing is uploaded or stored.
Frequently asked questions
Is it safe to paste API responses or config files?
Yes. The JSON is parsed by your own browser with JSON.parse and is never uploaded, logged or stored.
How do I find a JSON syntax error?
Invalid JSON shows the parser's message together with the line and column where parsing stopped, so you can jump straight to the problem.
Can I minify JSON?
Yes. Choose Minify to remove all whitespace, which is useful for payloads and environment variables.

