JSON Schema Generator
When you already have an API sample, paste it into this online JSON Schema generator to get type and properties. Use the online cURL generator when you need a curl command instead.
What it is for
Turn a real JSON payload into JSON Schema without writing type and properties by hand.
How to use
- Paste a JSON object or array, such as a name and age sample.
- Optionally mark required fields, or disallow additional properties.
- Copy the schema into docs, validators, or codegen.
FAQ
Is the JSON uploaded?
No. Inference stays in the browser.
How is this different from the online cURL generator?
This page builds JSON Schema from JSON. The online cURL generator turns an HTTP request into a curl command.
More in this topic: JSON Tools Online