Back to Web development
JSON formatter: beautify, minify and find errors
Paste JSON to beautify or minify it, choose the indent and sort keys. Invalid syntax is reported with the exact line, column and a hint about the usual mistakes.
How to use
- Paste your JSON into the box.
- Choose Beautify or Minify and pick the indent.
- If there is an error, check the line and column and fix it. When it is valid, click Copy.
Frequently asked questions
Why does my JSON show an error?
The usual causes: a trailing comma after the last item, single quotes instead of double quotes, or keys that are not wrapped in double quotes.
Does minifying change my data?
No. Only spaces and line breaks are removed; the data stays the same.
Is my text sent anywhere?
No. The tool runs entirely in your browser and sends nothing anywhere.