Skip to main content

JSON Schema Validator

Validate JSON against a JSON Schema (drafts 2020-12, 2019-09, 7, 6 and 4) with clear errors and line numbers, catch typos in schemas, and generate a schema from sample JSON.

100% client-side · no data leaves your browser

6 problems found

Validated with Draft 2020-12. Click a problem to jump to it.

About this tool

Paste a schema and some JSON to see whether they match. Every problem is listed once with a readable message, the path to the value and its line number, and clicking a problem jumps to it. anyOf and oneOf failures show why each option failed, $ref is followed, and formats like email, date-time and uri are checked. The tool also lints the schema itself, pointing out misspelled keywords such as requried or minLenght, OpenAPI-only keywords such as nullable, and draft mix-ups. Switch to Generate to infer a schema from sample JSON: types, required fields, nested objects, arrays and formats, ready to tighten by hand. Supports drafts 2020-12, 2019-09, 7, 6 and 4, all in your browser.

How to validate JSON against a schema

Check JSON data with a JSON Schema.

  1. 1

    Paste the schema

    Paste your JSON Schema on the left; the draft is detected from $schema.

  2. 2

    Paste the data

    Paste the JSON to check on the right.

  3. 3

    Fix the problems

    Read each error, click it to jump to the line, and fix the data or the schema.