JSON Schema Validator

Press Validate, paste a schema, and get every failing path.

A JSON Schema describes the shape a document must have: which properties are required, what type each value is, and what ranges or patterns are allowed. This validator checks your data against a schema and reports each violation with the path to the offending value.

It is useful for testing an API contract, checking a config file before deployment, or confirming that a model's structured output matches the schema you asked for. YAML, XML and CSV input is parsed first and then validated the same way.

How to use it

  1. Paste the data you want to check into the editor.
  2. Press Validate and paste your JSON Schema into the panel.
  3. Run the validation and fix the paths listed in the result.

Questions

Which JSON Schema drafts are supported?

Validation uses Ajv with format support, which covers draft-07 keywords and the common string formats such as email, uri and date-time.

I do not have a schema yet. Can one be generated?

Yes. Choose JSON Schema in the Convert to menu to infer a schema from a sample document, then refine it by hand.

How many errors are shown?

All errors are collected rather than stopping at the first, and the panel lists the first eight with their paths.

All tools