JSON Schema Validator
Validate JSON data against JSON Schema with detailed error reporting. Supports Draft-07 and 2020-12.
JSON Schema
JSON Data
Validation Results
Click Validate to check your JSON data against the schema.
How to Use the JSON Schema Validator
Enter your JSON Schema in the left editor and your JSON data in the right editor. Click "Validate" to check if the data conforms to the schema. Use "Load Sample" to see an example.
What is JSON Schema?
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It describes the structure, types, and constraints of JSON data — like a blueprint for your API payloads, configuration files, or database records.
Common Schema Keywords
- type — Specifies the data type (string, number, object, array, boolean, null)
- properties — Defines the expected properties of an object
- required — Lists properties that must be present
- enum — Restricts a value to a fixed set of options
- pattern — Validates a string against a regular expression
- minimum / maximum — Sets numeric bounds
- items — Describes elements in an array
Related Guides
- JSON Schema Tutorial: Validate Your Data — learn schema keywords, types, and real-world examples
- What is JSON? — JSON fundamentals before diving into schemas
- JSONPath Tutorial — query and extract data from validated JSON
FAQ
What JSON Schema drafts are supported?
The validator uses Ajv which supports Draft-07 by default, the most widely used JSON Schema specification.
Is my data safe?
Yes. All validation happens in your browser. No data is sent to any server.
What happens if my JSON is invalid?
You will see detailed error messages showing the exact path, the validation keyword that failed, and a human-readable description.