Guide

THE TOOLBOX / DATA UTILITIES

JSON Schema validator,
verify, infer & mock locally.

Validate JSON payloads against Draft 2020-12 or Draft-07 JSON Schema live in your browser, infer typed schemas with email/UUID/date-time format detection, or generate sample JSON from any schema.

15 lines · 315 B

315 / 200,000 UTF-16 code units · 315 UTF-8 bytes

Validating JSON against schema…

51 lines · 871 B

871 / 200,000 UTF-16 code units · 871 UTF-8 bytes

JSON SCHEMA DIALECTS

Draft-07 vs. Draft 2020-12 quick reference.

CapabilityDraft-07Draft 2020-12Note
$schema URIhttp://json-schema.org/draft-07/schema#https://json-schema.org/draft/2020-12/schemaHTTPS standard URI
Reusable Definitionsdefinitions$defsStandardized namespace
Tuple Arraysitems: [s1, s2]prefixItems: [s1, s2]items validates remaining elements
Property DependenciesdependenciesdependentRequired / dependentSchemasCleaner separation of concerns
OpenAPI AlignmentOpenAPI 3.0 subsetFull OpenAPI 3.1 parity1:1 schema reuse

1. Real-Time Ajv Worker Validation

With Live validate enabled, every edit is checked in a sandboxed Web Worker so large payloads and complex regex patterns never freeze your tab.

2. Bidirectional Schema ↔ Sample Workflow

Generate a typed schema from raw API JSON with Infer Schema →, or synthesize realistic mock payloads from a schema with ← Generate Sample JSON.

Frequently Asked Questions

What is the difference between JSON Schema Draft-07 and Draft 2020-12?

Draft 2020-12 aligns with OpenAPI 3.1, replaces definitions with $defs, introduces prefixItems for tuple validation, and splits dependencies into dependentRequired and dependentSchemas. Draft-07 remains common in legacy APIs and OpenAPI 3.0 stacks.

How does automated schema inference work?

The inference engine inspects your JSON instance recursively, distinguishes integer vs. number, detects standard string formats (email, uuid, date-time, date, uri, ipv4), and merges object arrays to determine which keys are required across all items.

Can I generate a starter JSON payload from an existing JSON Schema?

Yes. Click Generate Sample JSON to synthesize a valid example object respecting enum, const, default, examples, minimum, and string format hints.

Does format validation check emails, dates, and UUIDs?

Yes. Powered by Ajv and ajv-formats inside an isolated Web Worker, semantic formats such as email, date-time, date, uri, uuid, ipv4, and ipv6 are validated locally.

Are my JSON payloads or API schemas sent to a server?

Never. Schema compilation, validation, inference, and sample generation run 100% locally in your browser.