ToolBuddy
In Browser

JSON to JSON Schema

Infer a JSON Schema from a sample object or array. Types, properties, and required keys are derived in the tab. A starting point for API contracts, not a full draft-2020 generator.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Infer a JSON Schema from a sample. Object keys become properties; the first array item sets items. Required lists every key present in the sample.

How to use: paste JSON, copy the schema. Nested objects recurse. This is a sketch, not draft-2020 with $ref and formats.

Example: {"id":1,"name":"Ada"} yields integer and string properties. Related: JSON formatter to tidy the sample first.

Related Web tools