JSON Schema Validator Online: Draft-07, 2019-09, 2020-12

JSON Schema Validator Online: Draft-07, 2019-09, 2020-12

Paste JSON and a schema to see every error with its exact path as you type. Supports Draft-07, 2019-09 and 2020-12 via Ajv, with no upload.

Updated November 2026

Reviewed by Rafael Duarte

Shift + Enter to Copy · Shift + Del to Clear
EDITABLE

How this JSON Schema validator works

Two editors, one clear result

1. Paste your JSON and schema

Put the document in JSON Data and the rules in JSON Schema (both start with an example). Pick the draft in the selector, where draft-07 is labeled Standard v7, or let the schema's $schema choose it.

2. Let it validate

There's no button to press: validation runs on its own about 300 ms after you stop typing, and again whenever you change the draft.

3. Read the result

Green means valid. Red lists every failing rule with the exact path in your data, so you know exactly what to fix.

What this JSON Schema validator does

Three drafts, one validation engine

Draft-07, 2019-09 and 2020-12

If the schema declares $schema, the version is selected automatically (draft-06 runs on the draft-07 engine); otherwise pick it in the selector. Draft-04 and draft-03 schemas are refused with a message, so older schemas need upgrading first.

Exact error path for every failure

Each violation shows the instance path (e.g. /users/0/email) and the rule that failed, so there is no guessing which field is wrong.

One Beautify for both panels

The Beautify button reformats the JSON data and the schema together, with 2-space indentation.

Ajv engine, 100% local

The schema is compiled and checked in your browser with Ajv 8, reporting all errors at once, plus the time it took. Nothing is uploaded, and remote $ref URLs are not fetched.

Examples

What a validation error actually tells you

Validation error
What it means
/users/0/email — must match format "email"
the email field doesn't match the expected pattern
/age — must be integer
a field expected as integer contains a string instead
/ — must have required property 'name'
a required property is missing from the data
/ — must NOT have additional properties: "nickname"
the object at that path has a key the schema doesn't allow
/status — must be equal to one of the allowed values: "active", "idle"
the value isn't in the enum list, which is shown after the colon

When you'll reach for this tool

The most common scenarios among people who use it

API contract testing

Check request and response payloads against the schema of an endpoint before writing integration tests. OpenAPI 3.1 schemas are 2020-12; OpenAPI 3.0 isn't pure JSON Schema, and keywords like nullable are silently ignored here. More in JSON Schema for REST APIs.

Config file check

Validate a config file against its published schema (such as the one from SchemaStore) before committing. Paste the schema itself, since remote $ref links aren't resolved.

Pipeline quality gate

Reject records that violate a schema before they land in a database or a message queue.

Form data validation

Draft a schema for user-submitted data and check it server-side without hand-rolled field checks.

SDK and API development

Publish a canonical schema so consumers can validate requests locally before calling your API.

Getting a validation error? Start here

Missing required field

A property listed in required isn't present in the data at all. Note that required only checks that the key exists: "email": null passes. See JSON Schema required: what it actually validates.

Wrong data type

A field expected as integer contains a string, for example, or an array where an object was expected. A number sent in quotes ("42") is a string. More in Why you get 'must be number'.

Format violation

A field with "format": "email" or "format": "date" doesn't match that pattern, even though its type is correct.

JSON syntax error

Schema checks can't run until both documents parse as valid JSON. Fix the syntax error shown under the panel and validation runs again on its own.

A misspelled keyword does nothing

Unknown keywords are ignored rather than reported, so a typo like requried silently drops that rule. If a check you expect never fires, look at the spelling.

Why validate here

Everything runs in your browser with the Ajv library: no data is sent to a server, and there's no account or usage limit.

Every error comes with its path in the document, so you don't have to scan a large payload field by field to find what broke. Once a schema works here, the same Ajv rules carry over to your code.

This online validator vs. a library in your project

Use the page to try a schema, the library to enforce it

Online validator
Library (Ajv, jsonschema)
Setup
none, paste and read
install and write a small script
Best for
drafting a schema, debugging one payload
validating every request in production or CI
Remote $ref links
not fetched
configurable
Draft-04
not supported
available in some libraries

Frequently asked questions

Paste the document into the JSON Data editor and the schema into the JSON Schema editor. There's no Validate button: a moment after you stop typing, the tool compiles the schema with Ajv and shows Status: Valid or Invalid with the list of errors. Everything happens in your browser, with no upload.

Resources

Related Tools