JSON Schema validator

Validate JSON data against a JSON Schema and see every error with its path: types, required fields, enums, ranges and patterns. Private, in-browser.

Runs in your browser. Nothing you paste is uploaded. Supports JSON Schema draft-07 (types, required, enums, ranges, patterns).

How to use it

  1. Paste your JSON Schema in the left box.
  2. Paste the JSON data you want to check in the right box.
  3. Press Validate.
  4. Read the result: Valid, or a list of every problem with its path, such as /age must be >= 18.

Check data before it breaks something

A JSON Schema describes what valid data looks like: which fields are required, what type each one is, allowed values, minimum and maximum numbers, string lengths and patterns. Validating against it catches bad data early, before it reaches your database, a partner's API or a production config.

This page uses Ajv, the most widely used JSON Schema validator for JavaScript, with all errors reported at once rather than stopping at the first. It supports draft-07 schemas, the version most tools and API specs still use. Format keywords such as email or date are not checked, so add a pattern if you need them enforced.

Reading the errors

Each error starts with the path to the problem field (for example /items/2/price) and says what was expected. (root) means the problem is at the top level, such as a missing required field. Fix the first errors first: one wrong type can cause several follow-on errors in the same object.

Questions

Which JSON Schema versions are supported?
Draft-07 and the keywords it shares with earlier drafts. Schemas that rely on 2019-09 or 2020-12 only features may not validate as expected.
Are formats like email checked?
No, format keywords are ignored here. Use a pattern keyword with a regular expression to enforce them.
Why does my schema itself show an error?
The schema must be valid JSON and a valid schema. A misspelt type such as "interger" or a broken $ref is reported as a schema error.
Is what I paste sent to a server?
No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.

More free tools