JSON Schema Validator
Ajv Multi-DraftValidate whether JSON instances conform to explicit schema constraints such as required properties, value types, numeric bounds, and draft-specific keywords.
JSON Schema Validator
JSON Structural Metrics
JSON Schema validation rules
The JSON Schema Validator pairs Ajv with ajv-formats inside an offline-safe browser execution flow. Choose Auto ($schema) or select Draft-07, Draft 2019-09, or Draft 2020-12 directly to validate keywords like prefixItems, unevaluatedProperties, required fields, regex patterns, formats (email, uri, date-time, uuid, ipv4), and local #/definitions or #/$defs references. Remote HTTP $ref fetching is strictly disabled for privacy.
Features and output
- Lazy-loads Ajv engines for Draft-07, Draft 2019-09, and Draft 2020-12 based on $schema or toolbar selection
- Enforces standard ajv-formats (email, uri, date-time, date, uuid, ipv4) with allErrors reporting
- Separates JSON syntax errors, unsupported drafts, schema compilation failures, and instance errors
- Disables outbound remote $ref HTTP fetching to protect private internal schemas
When to use this tool
- Verify API webhook payloads or request contracts against Draft-07, 2019-09, or 2020-12 schemas
- Inspect instance paths and failed Ajv constraint keywords (required, type, prefixItems)
- Test local #/$defs and #/definitions reusable schema components safely offline
Practical example
Data: {"id":"7"} | Schema: {"type":"object","properties":{"id":{"type":"integer"}},"required":["id"]}Schema Validation Failed (draft-07):
• /id [type]: must be integer ({"type":"integer"})Tested offline behavior: local Draft-07, Draft 2019-09, and Draft 2020-12 schemas validate locally; external https://... $ref schemas return a privacy block message with zero outbound requests.
Common errors & troubleshooting
- Unrecognized $schema URIs (such as Draft-04 or non-standard dialects) report an explicit Unsupported Draft error instead of silently skipping rules.
- Remote $ref URLs fail compilation cleanly with an offline security message; inline or use local #/$defs instead.
- Invalid JSON syntax in either Data or Schema identifies which pane failed parsing before schema compilation.
Limitations & edge cases
- Supports Draft-07, Draft 2019-09, and Draft 2020-12; Draft-04 and OpenAPI 3.0 dialects are not supported.
- Remote $ref network fetching is intentionally disabled for client-side privacy.
- Schema checks enforce structural rules written in your schema, not external database or business constraints.
Developer tip: Declare "$schema" explicitly at the top of your schema (or pick the exact draft in the toolbar) when testing Draft 2020-12 keywords like prefixItems.
How to use JSON Schema Validator
- 1Enter JSON instance data in the left JSON Data pane and your JSON Schema in the right JSON Schema pane.
- 2Leave Draft on Auto ($schema) or pick Draft-07, 2019-09, or 2020-12 explicitly.
- 3Click Validate Schema (or press Cmd/Ctrl + Enter) to view pass confirmation or detailed instance path errors.
Privacy note: Processing runs locally in your active browser tab. Avoid pasting live production secrets or tokens.Verified against implementation: November 2026
JSON Schema Validator Reference
Frequently asked questions
How is schema validation different from JSON syntax validation?
JSON syntax validation checks whether text follows JSON grammar (brackets, quotes, commas), whereas JSON Schema validation verifies that parsed values satisfy declared rules like types, required keys, ranges, and patterns.
Which JSON Schema drafts are supported?
Draft-07 (default when $schema is omitted), Draft 2019-09, and Draft 2020-12 are supported via native Ajv draft engines loaded dynamically on this page.
Why do remote $ref URLs fail to resolve?
To guarantee strict browser privacy and zero unintended outbound requests, external HTTP $ref loading is disabled. Place sub-schemas locally under definitions or $defs.
Does this validate format keywords such as email or date-time?
Yes. ajv-formats is active, so standard string formats like email, uri, date-time, date, uuid, and ipv4 are validated.
Related tools and contextual links
View all 16 tools →Verify strict JSON grammar separately on either your instance data or schema.
Fix failing properties or missing required keys directly in the editor.
Infer compile-time TypeScript interfaces alongside your runtime schema.
JSON Formatter
Format, indent, and normalize compact or unorganized JSON with 2-space, 4-space, or tab indentation and optional key sorting.
JSON Minifier & Compressor
Strip unnecessary formatting whitespace outside strings to compact valid JSON onto one line and calculate UTF-8 byte reduction.
JSON Viewer & Tree Explorer
Explore nested JSON objects and arrays in an accessible collapsible tree with real-time filtering, type colors, and bracket-safe path copying.