JSON formatter and validator
Format, minify and validate JSON. Shows the line and column of any error, and can sort keys. Runs fully in your browser.
Runs in your browser. Nothing you type is sent anywhere.
Loading the tool…
How to use it
- Paste your JSON.
- Press Format, Minify or Sort keys.
- Fix any error shown, then copy or download.
Questions
Why is my JSON invalid?
The usual causes are a trailing comma, single quotes instead of double quotes, or a key without quotes. The error shows where it stopped.
Is anything I type sent anywhere?
No. Everything is worked out in your browser, on your own device. Nothing you type leaves it.