How to use the json formatter
- Paste your JSON.
- Click Format for readable output or Minify for the smallest output.
- If it is invalid, the message shows what went wrong and where.
Frequently asked questions
Is my JSON sent to a server?
No. Parsing and formatting happen in your browser, so it is safe for API responses and config files.
Why is my JSON invalid?
Common causes are a trailing comma, single quotes instead of double quotes, and keys without quotes.
Does formatting change my data?
Only the whitespace changes. Note that duplicate keys collapse to the last value and very large numbers may lose precision, as with any standard JSON parser.