JSON Schema Validator and Generator
Validate JSON against a JSON Schema with path-level errors, infer a schema from a sample payload, or generate mock data from a schema. Everything runs locally.
JSON Data
JSON Schema
Validation, schema inference and mock generation all run in your browser. Payloads are never uploaded.
About This Tool
The JSON Schema validator checks whether an API response, configuration file or fixture actually matches its contract. Errors are reported by instance path and keyword, so a missing required field or a wrong type points at the exact location instead of leaving you to compare two large documents by eye.
Two related helpers live on the same page. Sample to Schema infers a draft-07 schema from a real payload, which is the fastest way to bootstrap a contract for an existing endpoint. Schema to Data generates example objects from a schema with a fixed seed, so test fixtures stay reproducible.
Key Features
Path-level errors
Each failure shows the instance path, keyword and message, ready to paste into a bug report.
Schema inference
Turn a sample response into an object schema with properties, required keys and array items.
Schema-driven mock data
Generate repeatable example data with a seed for fixtures and demos.
Local execution
Validation runs in the browser with no upload, so production payloads stay private.
When to Use It
Contract regression
Validate captured responses against the schema before releasing a backend change.
Bootstrap a contract
Infer a schema from one real response instead of writing it from scratch.
Prepare test fixtures
Generate consistent sample payloads for frontend mocks and integration tests.
How to Use It
- 1Open the validation tab and paste the JSON plus its schema.
- 2Run validation and read the error table if it fails.
- 3Switch to Sample to Schema to infer a contract from real data.
- 4Use Schema to Data with a seed when you need repeatable fixtures.
Frequently Asked Questions
Which schema draft is supported?
The validator targets draft-07 and the commonly used keywords. Remote $ref resolution and the full 2020-12 keyword set are not included.
Is the payload sent to a server?
No. The schema engine loads in the page and all validation happens locally in your browser.
