JSON Schema describes what a JSON document must look like: which properties are required, their types, ranges, formats and patterns. Validating against it catches a bad API payload or config file before it reaches your code.


Paste a schema and the data. Every error is listed with a JSON Pointer to the failing value (/items/2/price) and the keyword that failed. Drafts 4, 7, 2019-09 and 2020-12 are supported; Auto reads the draft from the schema's $schema and uses 2020-12 when there is none.


Validation runs in your browser with @cfworker/json-schema: nothing is uploaded. To only check that the JSON parses, or to pretty-print it, use the JSON Formatter .

Frequently asked questions

Which JSON Schema drafts are supported?

Draft 4, draft 7, 2019-09 and 2020-12. With Auto, the draft is read from the schema's $schema keyword, and 2020-12 is used when the schema does not declare one.

What does the error path mean?

It is a JSON Pointer to the value that failed: /items/2/price is the price of the third item. An empty path means the error is about the whole document, such as a missing required property.

Does the validator download remote $ref schemas?

No. References inside the same schema (#/$defs/...) work, but nothing is fetched from the network. Paste referenced definitions into the schema under $defs instead.

Related tools