JSON Schema Validator
Validate, format, and compact JSON Schema documents in your browser.
Paste a JSON Schema document to check common keyword structure, format it for review, or create a compact copy. Processing stays local to your browser.
How it works
Use this tool to review a schema before adding it to API documentation, configuration checks, forms, or contract tests. The input must be valid JSON and the schema root may be either an object or a boolean schema.
The validator checks common JSON Schema 2020-12 document structure: schema-bearing keywords, type names, composition arrays, object-property maps, required and dependent field lists, numeric limits, length and item counts, boolean flags, regular expression patterns, references, and duplicate list entries.
Custom vocabulary keywords are allowed by default because many projects extend JSON Schema. Turn on the unknown-keyword warning when you want a stricter review of accidental misspellings in common schemas.
This tool validates the schema document itself; it does not validate sample data against the schema. Input and output stay in your browser. Do not paste confidential schemas unless you trust the device and page context you are using.