JSON Formatter
Format, validate and minify JSON with clear error messages. Free and private.
How to use
- Paste your JSON into the box.
- Click Format to make it readable, or Minify to make it compact.
- Errors show the line and column to fix.
FAQ
Is my JSON sent to a server?
No. Formatting and validation run in your browser, so private data stays on your device.
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, and keys without quotes.
Can I sort keys?
Yes. Tick Sort keys before formatting.