JSON Validator, Formatter and Linter

Syntax errors with line and column. Pretty-print with 4-space indent, or minify. JSON Schema Draft-07. Lint duplicate keys, trailing commas, comments and empty keys. JSON stays in your browser — nothing is uploaded.

Validate JSON — line and column

Paste or type JSON and get syntax errors with a line and column. Open a finding to jump to that spot in the editor.

Format and minify

Pretty-print with 4-space indent, or minify to a single line. Formatting runs only when the document is syntactically valid JSON.

JSON Schema (Draft-07 by default)

Paste a schema to check the document. Schema checks use JSON Schema Draft-07 by default. Remote references are not fetched.

Lint what JSON.parse hides

JSON.parse keeps the last value for a duplicate key and does not report trailing commas, comments, or empty keys. This linter reports those problems.

Your JSON never leaves the browser

Validation, formatting, and schema checks run on your device. Nothing is uploaded.

What does this tool do?

It validates, pretty-prints, minifies and lints JSON in your browser, with line/column errors and optional JSON Schema Draft-07.

Does my JSON leave the browser?

No. Nothing is uploaded.

Which JSON Schema draft is used?

Draft-07 by default. Remote $ref URLs are not fetched.

How is this different from JSON.parse?

JSON.parse keeps the last duplicate key and ignores trailing commas, comments and empty keys. This linter reports those problems.