Format, beautify, minify and validate JSON online. Shows the exact line and column of syntax errors and can sort keys. Free, fast, and private.
The JSON formatter pretty-prints, minifies and validates JSON. When the input is invalid it tells you the line and column of the first syntax error, so you can fix broken API responses or config files quickly.
No. Formatting and validation run in your browser with JavaScript. Nothing is sent to a server.
Common causes are trailing commas, single quotes instead of double quotes, comments or unquoted keys. The status bar shows the line and column where parsing stopped.
It sorts object keys alphabetically at every level, which makes two JSON documents easier to compare.