Skip to content

JSON

JSON Schema Validator

Validate JSON against a draft-07 schema and inspect errors with their exact data paths.

How to use this tool
  1. Paste a JSON document and a draft-07 JSON Schema.
  2. Run validation.
  3. Review the result and error paths.

Loading tool…

Find this tool in

About this tool

What is JSON Schema Validator?

Check a JSON document against explicit rules before accepting an import or relying on an API response. The data and schema belong in separate inputs. A parser answers whether the JSON syntax is valid; the schema answers whether that value has the required shape. The validator uses draft-07, so choose schema keywords and references supported by that draft.

A worked example

Find a number that arrived as a string

Example input

{"age":"42"}

{"type":"object","properties":{"age":{"type":"integer"}}}

Expected result

/age · integer

Paste the first object into the data input and the second into the schema input. The age property fails because a quoted 42 is a string, not an integer. Removing its quotes fixes that particular error. Declaring a property under properties does not make it mandatory; add it to required when an absent value must also fail.

Common mistakes and limits

  • A syntactically valid schema can still express the wrong business rule. Test examples that should fail as well as examples that should pass.
  • The browser does not fetch arbitrary external references for you. Keep validation self-contained and review the reported schema error rather than assuming a missing reference was checked.

Features

What you can do

  • JSON Schema draft-07 validation
  • Required properties, types and nested structures
  • Clear validation paths
  • Schemas and data processed in an isolated worker

Frequently asked questions

Questions about JSON Schema Validator

Does it fetch external schema references?

No. Local references inside the supplied schema are supported. External references are not fetched. Regex or complex schemas that exceed the execution limit are stopped.

Related tools