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
Embed this tool on your websiteFree
  1. Choose how tall the frame should be.
  2. Press Copy code.
  3. Paste it into your page, blog, WordPress or Notion HTML block.
Height

The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.

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