JSON Schema Generator (from JSON)

Developer Tools

Create a JSON Schema from sample JSON

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Draft

Similar tools you may like

History

All history →

JSON Schema Generator (from JSON) — at a glance

Turn a sample JSON into a schema you can use for validation.

JSON
{"id":1,"name":"Asha"}
Generate
Result
{ "type": "object", … }

How to use it — step by step

A valid JSON example.

1

Paste JSON

One example object or array.

2

Pick options

Required keys, formats and draft.

3

Generate

The schema appears below.

4

Copy

Use it in your validator or API docs.

Pro tips

Small things that make the result better.

✦Give an example that contains every field.
✦Arrays of objects are merged into one item schema.
✦Review required fields — optional ones may be missing in your sample.

Quick facts

2 drafts07 and 2020-12
Formatsemail, date, uri
Nestedobjects and arrays
Privatein browser

Frequently Asked Questions

Is the schema perfect?+

It is a good starting point. Review it, especially required fields and number ranges.

What formats are detected?+

Email, date, date-time, uri and uuid.

Is my JSON uploaded?+

No.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools