JSON formatter and validator online

Paste JSON to pretty-print it, validate it with the exact error line, or minify it to one line.

About JSON formatter

Paste JSON from an API or a config file. It's checked as you type: valid JSON is indented with the spacing you choose; invalid JSON shows the line and column of the problem — a missing comma, single quotes or a trailing comma.

Press “Minify” to put it on one line, or sort keys alphabetically to compare two files easily. Nothing is uploaded, so it's safe for internal data.

FAQ

What are the most common JSON mistakes?

Trailing commas, single quotes instead of double quotes and unquoted keys.

More tools here

Other tools you may like