JSON Schema Validator

Check that a JSON document matches a schema, with the right fields, types, formats and value ranges. Every violation is listed with the path of the failing value and the schema rule that failed.

JSON Schema
JSON data
Validated locally

How to use the JSON Schema Validator

  1. Paste the JSON Schema on the left and the data on the right.
  2. Pick the draft (or let $schema decide).
  3. Press Validate to see every error, or a confirmation that the data is valid.

Features

  • Drafts 4, 7, 2019-09 and 2020-12
  • All errors, not just the first
  • Formats such as email, date-time, uri and uuid
  • Sample schema and data to learn from

Supported input

A JSON Schema and a JSON document.

Limitations

  • Remote $ref URLs are not fetched (your data never leaves the browser). Include referenced definitions in the same schema using $defs.

Privacy

Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.

Frequently asked questions

01Which draft should I use?

Use 2020-12 for new schemas. Use draft 7 if your tooling (for example an older OpenAPI 3.0 setup) requires it.

02Is my data uploaded anywhere?

No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.