JSON Schema

Infer, validate, and sample JSON Schema

Generate a Draft 2020-12 schema, validate JSON, or create a sample, entirely in your browser.

0 characters · 0 B

Schema analysis without uploading data

Inference creates a compact Draft 2020-12 starting point from the types and structure in your JSON. Review required properties and constraints before treating an inferred schema as a contract.

Validation supports Draft 2020-12 keywords and common string formats. Sample generation follows defaults, examples, constants, enums, local references, properties, arrays, and common formats. Schema code is loaded only when used, so the main formatter stays lean.

Useful tips

  • Infer first, then tighten the generated constraints.
  • Review generated samples rather than treating them as test coverage.
  • Keep schemas in source control beside the API they describe.