Skip to content

Schema Validator

Validate JSON Against a JSON Schema

Check a JSON document against its schema and see each failing value at its exact JSON path.

100% In-Browser & PrivateNo uploadsFree forever

A JSON document can be syntactically valid and still violate an API contract. This validator checks values against JSON Schema constraints such as types, required properties, ranges, formats, and additional-property rules.

Paste the instance and schema into separate editors, validate locally, and follow each error path to the exact value or constraint. Draft 2020-12 is the default; a schema `$schema` declaration selects its supported draft.

Validation runs in a Web Worker. Local `$ref` references work; remote schemas are not fetched, so validation never sends either document to a server.

Example validation error

$.user.age
Expected type integer but found type string

How to validate JSON with a schema

  1. 1Paste the JSON instance and its JSON Schema, or load the paired sample.
  2. 2Select Validate JSON. The declared `$schema` chooses the draft; schemas without one use Draft 2020-12.
  3. 3Review the result paths and messages. Fix the input or schema, then validate again.
  4. 4Copy or download the validation result to share the diagnostics.

Why MyJSONPal is different

Privacy-first, by design

All parsing, validation and conversion runs in your browser. Your data is never sent, logged, cached or sold — close the tab and it is gone.

Fast, even on huge files

Heavy processing is offloaded to a Web Worker, so multi-megabyte documents are handled without freezing the interface.

No accounts, no limits

There is nothing to sign up for and no usage quota. Paste, format, convert and download as often as you like.

Frequently asked questions

How do I validate JSON against a JSON Schema online?

Paste the JSON document and its schema into the two editors, then select Validate JSON. Each failed constraint is reported with the instance path and a short message.

Why does valid JSON fail schema validation?

JSON parsing checks syntax; schema validation checks the data contract. A string where the schema requires an integer, a missing required field, or an unexpected property can fail even when the JSON parses.

Which JSON Schema draft does the validator use?

The validator recognizes Draft 2020-12, 2019-09, Draft 7, Draft 6, and Draft 4 from the schema’s `$schema` URI. If `$schema` is omitted, it uses Draft 2020-12.

Are `format` keywords such as `email` checked?

Yes. Common built-in format assertions are enabled, so values such as an invalid email address can be reported in addition to type and structural errors.

Does the validator fetch remote `$ref` URLs?

No. It resolves references available within the provided schema but does not fetch remote references. Add referenced definitions locally to keep validation private and deterministic.

Where does a path like `$.user.email` point?

It identifies the value in the JSON instance that failed a constraint. Array positions use zero-based indexes, for example `$.users[2].email`.