Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

JSON Schema Validator

Check a JSON document against a JSON Schema without leaving your browser. Paste your document and your schema, press Validate, and get a clear pass/fail result with every error shown as a JSON path. Supports a practical draft-07 subset of keywords.

Input

Result

Validation errors

Path Error Keyword

Supported keywords

This validator implements a practical JSON Schema draft-07 subset:

  • type — object, array, string, number, integer, boolean, null
  • properties, required, additionalProperties — object keys
  • items — array element rules
  • enum — allowed values
  • minimum, maximum — number ranges
  • minLength, maxLength, pattern — string rules

Keywords outside this subset are ignored, so more complex schemas will not crash the tool.

How to use

  1. Paste your JSON document in the left box and your JSON Schema in the right box.
  2. Press Validate. A green result means the document passes; a red result lists every problem.
  3. Read the errors table: each row shows the JSON path of the problem, what went wrong, and which schema keyword failed.
  4. Use the Load Valid Example and Load Invalid Example buttons to see both outcomes instantly.

Frequently asked questions

It checks whether a JSON document follows the rules written in a JSON Schema — types, required fields, allowed values, number ranges, string lengths and patterns. It reports each failure with the exact JSON path, for example $.address.zip.

No. Validation runs fully in your browser using plain JavaScript. Nothing is sent to any server, so you can safely validate private or production data.

A practical draft-07 subset: type, properties, required, items, enum, minimum, maximum, minLength, maxLength, pattern, and additionalProperties. Keywords outside this list are ignored.

The tool checks JSON syntax first. If the document or the schema is not valid JSON, you get a clear message with the parser error instead of a validation result.

Yes. The Load Valid Example button fills in a user document and a schema that pass, and the Load Invalid Example button fills in a document that fails with several errors — a quick way to see how error paths look.