Skip to main content
ToolsHub

JSON Schema Validator

Paste a JSON Schema and a JSON document to check conformance instantly. Errors are listed with the exact data path and reason, so you can fix invalid payloads fast — all client-side.

Updated

Files never leave your browser

No validation yet

Enter a JSON Schema and JSON data, then click Validate to see the result here.

How to use JSON Schema Validator

The JSON Schema Validator checks a JSON document against a JSON Schema definition and lists every validation error with the exact data path and a human-readable reason. JSON Schema (json-schema.org) is the standard way to define the shape, types, and constraints of JSON APIs and configuration files. This tool supports Draft-07 and Draft 2020-12 keywords and runs entirely in your browser — sensitive payloads never leave your machine.

  1. Paste or upload your JSON Schema (the definition document) into the Schema panel on the left.
  2. Paste or upload the JSON data you want to validate into the Data panel on the right.
  3. Click Validate to run the validator — all errors appear instantly with their JSON Pointer paths.
  4. Click on any error to highlight the offending data node in the data panel.
  5. Fix the data or schema and re-validate until the result shows "Valid".
  6. Use the Schema draft selector to switch between Draft-07 and Draft 2020-12 if your schema uses draft-specific keywords.

Your data never leaves your device — 100% private processing.

Core JSON Schema keywords

JSON Schema uses keyword assertions to constrain data. The type keyword restricts values to one or more JSON types (string, number, integer, boolean, array, object, null). For strings: minLength, maxLength, pattern (regex), and format (email, uri, date-time). For numbers: minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf. For arrays: items (schema for each element), minItems, maxItems, uniqueItems. For objects: properties (per-key schemas), required (list of required keys), additionalProperties (allow or forbid extra keys), and patternProperties (regex-keyed property schemas).

Key JSON Schema keyword reference
KeywordApplies toPurpose
typeAnyConstrain to one or more JSON types
requiredObjectList of keys that must be present
propertiesObjectPer-property schema definitions
additionalPropertiesObjectAllow or forbid undeclared properties
itemsArraySchema each element must satisfy
enumAnyRestrict value to a fixed set
$refAnyReference a schema definition by URI
allOf / anyOf / oneOfAnyCombine multiple schemas with AND/OR/XOR logic

JSON Schema drafts and compatibility

JSON Schema has evolved through several published drafts. Draft-04 introduced the $schema meta-schema URI and the definitions keyword for reusable sub-schemas. Draft-07 added the if/then/else keywords for conditional validation and the readOnly and writeOnly keywords for documentation generators. Draft 2019-09 renamed definitions to $defs and added $recursiveRef. Draft 2020-12 is the current stable specification and introduced prefixItems for tuple validation and the unevaluatedProperties keyword. When sharing schemas, always declare "$schema" at the root so validators know which draft to apply.

Worked examples

Missing required field

Inputs: schema requires "email"; data {}

Result: error at / : must have required property "email"

Wrong type

Inputs: age expects integer; data {"age":"x"}

Result: error at /age : must be integer

Valid document

Inputs: data satisfies every keyword

Result: Valid — 0 errors

Glossary

JSON Schema
A JSON-based vocabulary for describing the structure and validation constraints of JSON documents.
$ref
A JSON Schema keyword that substitutes the current schema with another schema identified by a URI or JSON Pointer.
JSON Pointer
A string syntax (RFC 6901) like /address/city that identifies a specific value within a JSON document.
anyOf
A JSON Schema keyword that requires data to be valid against at least one of the listed sub-schemas.
additionalProperties
A JSON Schema keyword controlling whether object properties not listed in "properties" are permitted.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Developer Tools

Explore all Developer Tools.