JSON Formatter & Validator
Paste JSON to pretty-print it, minify it or find exactly where it's broken.
Runs in your browser. Nothing you type or drop here is sent anywhere.
About JSON Formatter & Validator
JSON (JavaScript Object Notation) is the standard format for APIs and config files. Formatting adds indentation so it's readable; minifying removes all spaces to make it as small as possible.
If the JSON is invalid, you'll see the error message and the line and column where it happens. Common causes are trailing commas, single quotes and unquoted keys.
Frequently asked questions
Is my JSON sent to a server?
No. It's parsed in your browser, so API keys and private data stay on your device.
Can it sort keys?
Yes. Tick “Sort keys” to order object keys alphabetically, which makes two JSON files easier to compare.