Skip to main content

JSON Schema Validator

Paste a JSON Schema and JSON data to validate. See exact error paths, keywords, and messages.

Need to generate a schema? → JSON Schema Generator
JSON Schema
JSON Data

How to Validate JSON Against a Schema

A JSON Schema is a contract: required keys, types, formats, and nested shapes. This JSON Schema validator uses Ajv to check a document against draft-07 or 2020-12 and lists each error with a JSON Pointer path.

Nothing leaves your browser. Paste the schema on one side and the instance on the other. Use it when you are implementing an API, reviewing webhook payloads, or debugging why a client payload was rejected.

Tips

  • Draft 2020-12 and draft-07 differ on vocabularies — pick the draft your producer actually publishes.
  • If validation fails on a nested field, copy the instance path and inspect it in the tree viewer.
  • Generate a first-pass schema from a sample with the schema generator, then validate more samples here.

More from Shane Code