Paste sample JSON and get a draft-07 schema with inferred types, formats, and required fields. Runs in your browser — your data never leaves your machine.
Automatically detects string, number, integer, boolean, null, object, and array types from your sample data.
Recognizes common string formats like date-time, date, email, and URI and adds them as schema annotations.
Generates schemas conforming to JSON Schema draft-07, the most widely supported draft across validators and tooling.
Paste your sample JSON into the left panel and the generated JSON Schema appears instantly on the right. The tool recursively infers types for every field, detects common string formats like dates and emails, and marks all fields as required by default. You can also upload a .json file. Copy the output or download it as a .schema.json file.
JSON Schema provides a contract for what your JSON data should look like. It specifies which fields are expected, what types they should be, and whether they are required. Schemas are used for API request/response validation, form generation, documentation, and code generation. Draft-07 is the most commonly supported version, compatible with popular validators like Ajv, jsonschema (Python), and many others.