JSON Formatter & Validator
Beautify, minify and validate JSON with clear error messages.
About the JSON Formatter & Validator
The JSON Formatter takes messy or minified JSON and pretty-prints it with proper indentation, or collapses it back down to a single line. If the JSON is invalid it tells you exactly what broke and where, instead of failing silently. Everything runs in your browser, so nothing you paste ever leaves your machine.
Frequently asked questions
No. The formatter runs entirely in your browser using JavaScript, so whatever you paste never leaves your device. That makes it safe for config files and API responses that contain sensitive data.
Usually a trailing comma, a missing quote around a key, or single quotes instead of double quotes. The error message points to the position where parsing failed so you can jump straight to it.