All tools / Developer and web / JSON formatter
JSON formatter
Format, minify and validate JSON.
Loading interactive tool…
Open the full tool for saved settings, clipboard access, or more space.
About this tool
Paste JSON to format it with readable indentation, shrink it to a single line, or check whether it is valid. If the JSON is broken, the error message points to the problem so you can fix it fast.
How to use it
- Paste your JSON into the box.
- Click Format to indent it or Minify to compress it.
- If you see an error, fix the spot it names and try again.
Questions
- Why does my JSON say invalid?
- The most common causes are a trailing comma, single quotes instead of double quotes, and unquoted keys. JSON requires double quotes around keys and strings.
- Is my data sent to a server?
- No. Parsing happens locally in your browser.