API response matches required fields
- Schema: { "type":"object","required":["id","email"],"properties":{"id":{"type":"integer"},"email":{"type":"string","format":"email"}} }
- Data: { "id":42,"email":"ada@example.com" } -> Valid schema and data
format validator
Validate JSON Schema contracts with AJV, then test sample request or response JSON locally before you ship an API change.
Compiles your pasted JSON Schema with AJV in the browser.
Validates optional sample JSON against the schema and reports field-level contract errors.
Checks structure rules such as required fields, property types, arrays, enums, formats, and nested objects when your schema defines them.
Runs locally on the page; schemas, sample payloads, and API examples are not uploaded, logged, or stored.
Uses flexible client-side validation for quick review; strict, draft-pinned, ref-aware CI validation should remain your production gate.
JSON Schema
Paste a valid JSON Schema object. Include required arrays, properties, enum, format, additionalProperties, or nested definitions you want AJV to enforce. Keep remote refs out of this quick validator.
Sample JSON (optional)
Paste JSON to validate against the schema, such as a request body, response fixture, webhook event, feature flag config, or docs example. Leave it blank to check only that the schema compiles.
This JSON Schema validator is for contract checks, not just JSON syntax. It compiles your schema with AJV and can validate a pasted payload so you can catch missing required fields, wrong property types, enum mistakes, and nested object errors before an API or config change ships.
Because validation runs locally in the browser, you can review private examples, webhook payloads, or internal config snippets without uploading them. Use it for fast iteration, then keep strict AJV, OpenAPI, and contract-test validation in CI for production confidence.
format
JSON Validator & Syntax Checker
Check JSON syntax, catch trailing commas and quote errors, and keep every payload local to your browser.
format
JSON Formatter & Prettifier
Format minified JSON into readable two-space indentation for API debugging, reviews, and docs—without uploading it.
format
JSON Minifier
Minify JSON locally into compact, whitespace-free output for curl commands, environment variables, webhooks, signed requests, and config values.
format
JSON Diff Checker
Compare two JSON payloads locally to spot added, removed, or changed fields before API, webhook, or config changes ship.
format
JSONL Validator & NDJSON Checker
Validate JSON Lines and NDJSON records locally with line-precise parsing errors and basic key consistency checks.
format
YAML Validator
Validate YAML with a real parser, spot indentation issues, and keep configs private in your browser.
JSON Schemas and sample payloads stay in your browser. Nothing is uploaded, logged, stored, or shared, which makes the tool useful for private API examples and internal configs.
Client-side JSON Schema validation is a quick review aid. Production APIs should still enforce strict, draft-pinned, ref-aware validation and business rules in CI and backend services.