JSON Formatter, Validator & Minifier

Format, validate and minify JSON with a collapsible tree view and exact error line and column.

Paste JSON on the left to validate it as you type. Valid documents are pretty-printed with the indentation you choose, can be browsed as a collapsible tree, or squeezed down to a single line. Invalid JSON is not just rejected: the exact line and column are marked in the editor, with a short excerpt and a plain-language explanation of what went wrong. Numbers and strings are kept exactly as written, so large integers never lose precision. Nothing is sent to a server.

Paste JSON to validate, format or minify it. Errors point to the exact line and column.

JSON

JSON input

Result