Validate JSON against a JSON Schema
Use this JSON Schema validator to check whether a JSON document matches the rules in a schema. Paste both documents, review each reported path, and generate a starter schema when you need a fast first draft.
How it works
- Paste a JSON document and a JSON Schema into their editors.
- The validator parses both documents before comparing the data with the schema rules.
- Select an issue to jump to the relevant location, then copy or download the validation report.
Capabilities and limits
- Checks JSON syntax before schema validation begins.
- Reports validation problems with paths so errors are easier to find.
- Generates a starter schema from valid sample JSON; review generated rules before using them in production.
Examples
Required property
{"name":"BriarKit"}
{"type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"number"}}}This reports that the required version property is missing.
Array item type
["alpha", 2]
{"type":"array","items":{"type":"string"}}This identifies the number at index 1 as an invalid item.
Frequently asked questions
Is my JSON sent to a server?
No. Validation runs in the browser, so pasted JSON and schemas stay on your device.
Can I create a schema from JSON?
Yes. Paste valid JSON and use Generate from JSON to create a starter schema, then refine required fields and constraints.