Paste or drop JSON
Provide a representative JSON payload or JSONL sample.
Turn any JSON payload or JSONL sample into a spec-compliant JSON Schema — inferring formats (email, uuid, date-time) and optional fields across array samples.
Select JSON / JSONL
Draft 2020-12 & Draft-07 · inspects up to 100 array items.json · .jsonl
Zero upload limits · Runs in browser RAM
Draft 2020-12 & Draft-07
{
"orderId": "ORD-2026-01",
"amount": 149.95,
"currency": "USD",
"paid": true,
"items": [
{ "sku": "DATA-PRO", "qty": 2 }
]
}Draft 2020-12 JSON Schema with inferred nested types & required keys| Property | Source: JSON | Target: JSON Schema |
|---|---|---|
| File extension | .json | .schema.json |
| MIME type | application/json | application/schema+json |
| Structure type | Hierarchical | Typed Schema |
| Encoding | UTF-8 Text | UTF-8 Text |
| Nesting support | Yes | Yes |
| LLM token efficiency | Low | Medium |
| Schema / typed | No | Yes |
| Best for | REST/GraphQL API payloads, nested web state, structured AI outputs, and universal cross-language interchange. | Cross-language API payload contracts, OpenAI/Anthropic Structured Outputs, form validation, and AJV verification. |
Infer Draft 2020-12 or Draft-07 JSON Schema with nested types, formats, required arrays, and strict additionalProperties locally.
Provide a representative JSON payload or JSONL sample.
Pick Draft 2020-12 or Draft-07, root title, required defaults, and additionalProperties.
Download the schema or convert straight to Zod v4, Pydantic v2, or OpenAI functions.
Validate payloads against Draft 2020-12 or Draft-07 schemas locally with AJV and inspect exact JSON Pointer error paths.
Compile JSON Schema ($defs, $ref, enum, minimum, minLength, description) into idiomatic Zod v4 TypeScript code.
Convert sample JSON into strict OpenAI response_format (strict: true, additionalProperties: false) or Anthropic Tool Use schemas.
The Unified Type IR merges up to 100 array items so keys missing on some elements automatically become optional.
Yes. Sample strings matching email, UUID, URI, or ISO date-time automatically emit JSON Schema format annotations.
Yes. Use the local pipeline shortcuts to send your schema straight into JSON Schema to Zod or TypeScript.