How to use this tool
Paste a JSON document or load a local .json file, choose indentation and click Format or Minify. Invalid JSON is flagged with a syntax message, while valid output can be copied or downloaded.
Quick steps
- Paste valid JSON or import a JSON file from your device.
- Choose an indentation level and click Format or Minify.
- Inspect validation feedback, then copy or download your formatted data.
Practical tip
Valid JSON requires double-quoted keys and strings, no trailing commas and no comments. Avoid pasting private API secrets into any service you do not trust.
Common questions
Does this tool send my JSON to a server?
No. Parsing and formatting use JavaScript directly in your browser.
Why does my JSON with comments fail?
Strict JSON does not support JavaScript-style comments or trailing commas.
Can I use it to shrink JSON size?
Yes. Minify removes optional spaces while preserving the underlying data.