JSON Schema Generator
Make a JSON Schema from sample data. Every item of every array is used, formats are detected, and optional fields are found.
Make a JSON Schema from sample data. Every item of every array is used, formats are detected, and optional fields are found.
Used JSON Schema Generator? Share how it went to help others.
About this tool
JSON Schema Generator writes a JSON Schema from sample data, so you have a good starting point for validating requests, documenting an API or checking files. Paste JSON and the schema appears as you type. The generator looks at every item of every array, not just the first. If one object has a field that another lacks, the field is left out of the required list. If a value is a number in one item and whole in another, the type becomes number; if it is text in one and null in another, both are allowed. This is why an array with several samples gives a better schema than a single one. With formats on, text is compared with common patterns, and when all samples fit, a format is added: date and time, date, time, email, UUID, URL or IPv4 address. You can choose the current version of the standard, 2020-12, or Draft 7, which many older tools still use. Other options forbid properties that are not listed, which catches typing mistakes in configuration files, and add an example value to each field, which is useful for documentation. A title can be set at the top. If the JSON is not valid you get the line and column and a hint: single quotes, a comment, or a comma before a closing bracket. A schema made from samples is a draft, because samples cannot show everything. Add limits such as a minimum or a maximum length, list allowed values with enum, and decide which properties are really required. Empty arrays give no information about their items, and dates count as a format only if every sample has the same form. You can open or drop a JSON file up to 5 MB, copy the schema or download it as a file. The data is read in your browser and is not uploaded.

Several samples in an array work best.
Version, required fields and formats.
Add limits and allowed values.
Use it in your validator or docs.
Optional fields and mixed types are found.
Email, dates, UUID, URL and more.
2020-12 and Draft 7.
Forbid properties that are not listed.
Describe data once, check it everywhere
Reject bad data before it reaches your code.
ExampleUse the schema with a validator such as Ajv.
Describe a response.
ExampleTurn on examples and paste it in OpenAPI.
Catch typing mistakes.
ExampleForbid other properties.
Get suggestions for JSON files in an editor.
ExampleLink the schema in your settings.
Describe what you expect from a partner.
ExampleSend the schema with the order.
Ask a model for an exact structure.
ExampleGive the schema as the output format.
From draft to contract
Include one with missing fields and one with unusual values.
List the allowed values of fields such as status.
minimum, maximum, minLength and maxItems stop bad input early.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed JSON Schema Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 25 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.