JSON formatter and validator
Format, validate and minify JSON.
Processed on your deviceHow to JSON formatter
- 1
Paste your JSON.
- 2
Choose indentation or minify, and optionally sort keys.
- 3
Copy or download the result. Errors show the line and column.
Frequently asked questions
Is my JSON sent to a server?
No. Formatting and validation happen in your browser, which makes it safe for API keys and private data.
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. The error location points you to the spot.