Developer

JSON Formatter

Paste JSON to pretty-print or minify it. When it is invalid you get the line, the column and the character that broke it, not just “unexpected token”.

Runs entirely in your browser — nothing is uploaded to a server.

Frequently asked

Is my JSON sent to a server?

No. Parsing and formatting happen in your browser, so pasting production data is safe.

Why does my JSON fail to parse?

Usually trailing commas, single quotes instead of double, or unescaped newlines inside a string. The error message points at the exact spot.