Skip to main content
Back to Developer Tools

JSON Schema Validator

Validate JSON data against Draft-07 and 2020-12 schemas with local reference resolution and pointer errors.

Local Execution · Zero Remote Calls

JSON Schema (Draft-07 / 2020-12)

JSON Document (Data Instance)

Valid JSON Document

The document fully conforms to the provided JSON Schema with zero errors.

Tool Documentation & Guide

JSON Schema Validation Guide

Validate JSON data structures against Draft-07 and 2020-12 specifications offline.

Overview

The JSON Schema Validator inspects JSON documents against formal JSON Schema definitions (Draft-07 and Draft 2020-12). It checks data types, required object fields, array item boundaries, string pattern regexes, and built-in semantic formats (email, uuid, date-time, uri, ipv4, ipv6). Same-document local references (#/definitions/..., #/$defs/...) are resolved automatically with cycle protection, and remote references are explicitly blocked to ensure 100% offline security.

How to Validate JSON Against a Schema

1Input or Select a Schema

Paste your JSON Schema into the Schema Editor, or choose one of the curated presets (User Profile, API Configuration, E-Commerce Order).

2Input JSON Document

Paste the target JSON payload you wish to test into the Document Editor on the right.

3Inspect Validation Results

Review the real-time diagnostic table. If invalid, each failure displays its exact RFC 6901 JSON Pointer path, schema keyword, and human-readable explanation.

4Navigate & Copy Pointers

Click any RFC 6901 pointer chip to copy it to your clipboard for debugging, API testing, or defect reporting.

Validating Required Fields and Array Uniqueness
Input
Schema requiring {"required": ["email"], "uniqueItems": true} with payload {"tags": ["a", "a"]}
Output
Failure at /email (missing required property) and /tags/1 (duplicate item)

The validator flags both missing root properties and deep array collisions with exact JSON Pointer diagnostics.

Supported Standards & Security Constraints
  • Supported Drafts: JSON Schema Draft-07 and Draft 2020-12 core specifications.
  • Reference Scope: Same-document local references (#/...) are resolved; remote external references are blocked.
  • File Size: Client-side processing handles payloads up to 2 MiB with immediate syntax and structural checking.
Zero Network Execution
  • Validation runs entirely within your browser via pure AST evaluation without eval() or new Function().
  • No schemas, JSON documents, or validation reports are uploaded or sent over the network.