JSON Validator

JSON Validator — paste JSON, catch syntax errors with line and column, then pretty-print or minify. Runs in browser. Free, no signup.

JSON input
Awaiting input

About JSON Validator

Frequently asked questions

Strict JSON.parse compliance — the same rules a backend or API gateway will apply when accepting your JSON payload. That includes: balanced braces and brackets, double-quoted keys (not single quotes), no trailing commas, no JavaScript-style comments, valid escape sequences in strings, and valid number formats. If it passes here, it passes anywhere.

Down to the exact line and column. When validation fails, you get the error message from the parser, the line and column number, and a visual snippet showing the offending character with a caret beneath it. This is the same kind of pinpoint error you'd see in a code editor.

Pretty-print formats your JSON with 2-space indentation and line breaks — readable for humans. Minify strips every space and newline to produce the smallest valid output — useful when you're embedding JSON in a URL, config file, or anywhere bytes matter. Both produce the same data; they just differ in whitespace.

No. Everything runs in your browser — the validator never uploads or transmits your JSON. This matters if your data contains credentials, internal API responses, or anything else you don't want sitting on a third-party server.