JSON Schema

0 chars

JSON Data

0 chars

Validation Results

Click Validate to check your JSON data against the schema.

How to Use the JSON Schema Validator

Enter your JSON Schema in the left editor and your JSON data in the right editor. Click "Validate" to check if the data conforms to the schema. Use "Load Sample" to see an example.

What is JSON Schema?

JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It describes the structure, types, and constraints of JSON data — like a blueprint for your API payloads, configuration files, or database records.

Common Schema Keywords

  • type — Specifies the data type (string, number, object, array, boolean, null)
  • properties — Defines the expected properties of an object
  • required — Lists properties that must be present
  • enum — Restricts a value to a fixed set of options
  • pattern — Validates a string against a regular expression
  • minimum / maximum — Sets numeric bounds
  • items — Describes elements in an array

Related Guides

FAQ

What JSON Schema drafts are supported?

The validator uses Ajv which supports Draft-07 by default, the most widely used JSON Schema specification.

Is my data safe?

Yes. All validation happens in your browser. No data is sent to any server.

What happens if my JSON is invalid?

You will see detailed error messages showing the exact path, the validation keyword that failed, and a human-readable description.

Related Articles