Runs in your browser
JSON formatter
Format, minify and validate.
What this does
Pastes JSON and formats it with 2 or 4 spaces, or minifies it to one line.
Validating
If the JSON does not parse, this shows the error the parser itself gives — usually the position of the character it did not expect. That is often enough to find a missing comma or an unquoted key.
Minify
Minifying removes every space and line break outside of strings. It does not change what the JSON means, only how many bytes it takes to send.