JSON Formatter and Validator
Paste JSON to make it readable with proper indentation, check it for errors, minify it or sort its keys. Errors show the exact line and column.
How to use the JSON Formatter and Validator
- Paste your JSON.
- Click Format, Minify or Sort keys.
- Fix any error shown and copy the result.
Good to know
Paste JSON and press Format to indent it, Minify to remove spaces, or Sort keys. Errors show the line and column.
Everything runs in your browser; your data is not uploaded.
Frequently asked questions
Is my JSON sent to a server?
No, everything runs in your browser.
Why is my JSON invalid?
Common causes are trailing commas, single quotes and missing quotes around keys.
Can it handle large files?
Yes, within your browser's memory limits.