JSON Schema Validator
Validate JSON data against a JSON Schema.
Processed locally in your browser. Nothing you paste is sent anywhere.
- Lists every violation with the exact path to the offending value, not just pass/fail.
- Fast feedback loop while you tune a structured-output prompt.
- Runs in your browser — schema and data aren't uploaded.
Why this is private
- Processed locally in your browser. Nothing you paste is sent anywhere.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Validates a JSON value against a JSON Schema — useful for checking that a model's structured output actually conforms to the schema you asked for.
How to use it
- 1Paste your JSON Schema.
- 2Paste the JSON data to check.
- 3Validation errors, if any, are listed with their exact path.
Tips
- Supports the common subset of draft-07 (type, required, properties, items, enum, min/max, pattern, $ref and allOf) — $ref only resolves local pointers within the same schema (e.g. #/$defs/... or #/definitions/...), and anyOf/oneOf/conditional keywords aren't evaluated.
Frequently asked questions
What people use it for
Verify an LLM's structured outputConfirm a model response matches the schema before your code relies on it.
Test a schema against sample dataCheck a schema you're writing accepts the valid cases and rejects the bad ones.
Debug a failing API requestFind which field in a payload breaks the endpoint's schema.
Document expected shapePaste a schema and a conforming example together for a teammate.
Related tools
All developer toolsJSON Schema GeneratorGenerate a JSON Schema from a sample JSON document, with a toggle for the required-fields default.JSON ValidatorValidate JSON syntax and pinpoint errors instantly.Token CounterExact token counts for OpenAI models, plus calibrated per-model estimates for Claude, Llama, Gemini and Mistral.Context Window CalculatorSee how much of a model's context window your text uses.
Ready to use JSON Schema Validator?
JSON Schema Validator