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
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
enum list, which is shown after the colonWhen 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
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.
Each error reports the instance path (where the problem is, e.g. /users/0/email) and a message naming the rule that failed (e.g. must match format "email"). Follow the path into your JSON, then check that field against the matching part of the schema.
Check the $schema property at the top of your file: it names the draft the file was written for, and the tool switches to it automatically. Starting from scratch, draft-07 (Standard v7 in the selector) has the widest tool support, while 2020-12 is the current spec and adds keywords like unevaluatedProperties. Draft-04 and draft-03 aren't supported.
OpenAPI 3.1 schemas follow JSON Schema 2020-12, so they work once you paste the schema object itself. OpenAPI 3.0 uses its own variant: keywords such as nullable are ignored without a warning, so a null value may fail on type even though OpenAPI allows it.
Copy and Shift+Enter copy the JSON data from the left panel, not the validation result. Shift+Delete clears both panels. The shortcuts only work while the focus is outside the two editors.
Yes. Everything runs client-side via Ajv. No data is transmitted, no sign-up, and no daily limit on how many times you validate.
Missing required properties, wrong types (a string where a number or object was expected), format mismatches like invalid emails or dates, and plain JSON syntax errors. Fix syntax errors first — the validator can't compile a schema check until both documents parse.
No. The tool follows the strict JSON spec (RFC 8259), so JSON5 extensions like trailing commas or comments will fail to parse before schema validation even starts. Convert to standard JSON first.
Resources
Related Tools
- JSON Formatter & Validator: Fix Errors, Tree View Developer Format, validate and minify JSON with errors shown by line and column, one-click fixes for trailing commas and quotes, and tree or graph views.
- CNPJ & EIN Generator: Alphanumeric CNPJ 2026 + Validator Developer Generate test CNPJs (numeric or the new alphanumeric format, with branches) and US EINs, plus CIF, Partita IVA and SIREN. Validator included, free.
- Fake SSN & CPF Generator for Test Data, with Validator Developer Generate test SSNs and Brazilian CPFs, plus NIF, DNI, Codice Fiscale, Steuer-IdNr and NIR. Bulk CSV/JSON export, fake identity and a live validator.
- CSV to JSON Converter & JSON to CSV Online Developer Paste or upload a CSV (comma, semicolon, tab or pipe) and get clean JSON. Also converts JSON to CSV that Excel opens without garbled characters.
- Email Syntax Validator Developer Validate any email address format instantly against RFC 5322 rules — local part, @ symbol, domain, and TLD. Free, browser-only, private.