JSON Schema describes what a JSON document should look like: which properties are required, what type each value has, which numbers are allowed and which strings must match a pattern. This tool checks a JSON document against a schema and tells you exactly what is wrong.
Every error shows the JSON pointer to the value, the keyword that failed, such as required, type or enum, and a plain message. Click an error and the matching value is selected in the data box. It supports draft-07, 2019-09 and 2020-12, strict mode, format checks and a choice between the first error and all of them. It runs in your browser with the open source Ajv library.
Paste your JSON Schema on the left and the JSON data on the right. The result updates as you type. Each problem is listed with its JSON pointer path, the schema keyword that failed and a plain message. Click one to select that spot in the data.
Draft-07, 2019-09 and 2020-12. Auto-detect reads the $schema line in your schema and uses 2020-12 when there is none. Older drafts such as draft-04 are not supported.
With Strict mode on, Ajv rejects schemas that contain unknown keywords, ambiguous types or tuple mistakes, which usually means a typo. Turn it off to allow custom keywords and looser schemas.
On, the validator keeps going after the first failure and lists every problem. Off, it stops at the first one, which is faster on very large data.
Yes, when Check formats is on. It covers date, time, date-time, email, hostname, ipv4, ipv6, uri, uuid, regex and more. Turn it off if you only want the structure checked.
References inside the schema, such as #/$defs/address, work. Nothing is fetched from the web, so a $ref to another file or URL cannot be resolved. Paste the referenced definitions into the schema instead.
If the schema or the data is not valid JSON, the tool shows the line and column of the first problem with a plain message and a Go to error button that selects it.
No. Validation runs in your browser with the open source Ajv library, and nothing leaves your device.