JSON Validator
Paste a JSON Schema and a JSON document to check the document against it — required fields, types, ranges, and formats, with the exact path to every rule that failed. Runs entirely in your browser; nothing you paste is ever sent anywhere.
Quick Learn
Validating JSON usually means one of two very different things. The JSON Formatter checks that a document is syntactically valid — braces balanced, commas in the right places, strings properly quoted. This tool checks something deeper: whether a document's actual content matches a set of rules you define — a JSON Schema — covering required fields, value types, numeric ranges, string patterns, and more.
That distinction matters in practice: a payload can be perfectly valid JSON and still be the wrong shape for what your application expects — a missing required field, a price that's negative, an email that isn't actually an email. This tool checks both a JSON Schema and a document against each other, using the same JSON Schema standard the Schema Generator tool produces, and reports every rule that failed with the exact path to the offending field. Everything runs locally in your browser.
Best Practices
- •Don't hand-write a schema from scratch if you already have a representative payload — generate a starting point with the JSON Schema Generator, then tighten it here.
- •allErrors is always on here, so you'll see every rule that failed at once, not just the first one — useful for fixing a payload in one pass instead of one error at a time.
- •A schema with a typo in a keyword (e.g. "required" spelled wrong) won't necessarily error loudly — unknown keywords are usually just ignored by JSON Schema validators, so double-check keyword spelling if a constraint doesn't seem to be enforced.
- •String format checks ("email", "date-time", "uuid", etc.) validate the shape of the string, not that the value is real — an email format check will accept a syntactically valid but non-existent address.
More JSON Tools
JSON Formatter & Validator
Pretty-print, minify, and validate JSON with precise error locations.
JSON Compare
Structural diff between two JSON documents.
JSON ↔ YAML Converter
Convert between JSON and YAML instantly.
JSON ↔ CSV Converter
Flatten and unflatten tabular JSON to CSV.
JSON Schema Generator
Infer a JSON Schema from a sample payload.
JSON to TypeScript Interface
Generate TS types from a JSON sample.
JSONPath Tester
Query and extract values from JSON interactively.
JSON to Table
View JSON as an interactive, sortable table.
Frequently Asked Questions
Want the engineering deep-dives behind tools like this one?