JSON Schema Generator

Infer a draft JSON Schema from an example document, as a starting point to edit.

  • 100% Free
  • No account required
  • Runs in your browser
  • No data is uploaded
Not saved automatically

Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.

Saved JSON Schema Generator workspaces

Saved only on this device. Clearing browser data removes your workspaces. Expired saves are removed when this app next checks storage.

No saved workspaces for this tool yet.

No settings needed
JSON to Draft schema

Input

Paste or edit your JSON, then click “Run tool”.

Type, paste or drop a file
JSON
Ln 1, Col 1Spaces: 2UTF-838 bytes

Output

Draft schema (read-only).

Read-only
JSON
Ln 1, Col 1Spaces: 2UTF-80 bytes
Ready when you arePaste your input, then press Run tool or ⌘ ↵

Using the JSON Schema Generator

Overview

Infer a draft JSON Schema from an example document, as a starting point to edit.

Start a JSON Schema from a real example instead of a blank file.

How to use it

  1. Paste or type your JSON into Input, drop a file onto it, or press Example to load a sample.
  2. Press Run tool, or ⌘ ↵ from anywhere on the page.
  3. Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.

Input

JSON.

Output

Draft schema.

  • Infers types from values
  • Nested objects and arrays
  • Marks present keys required
  • Draft 2020-12 output

Tips

  • JSONPath starts at $, so $.user.name reads the name inside user.
  • JSON Diff compares by path, so reordered keys are not reported as changes.
  • A generated schema is a starting point to edit, not a finished contract.

Keyboard shortcuts

⌘ ↵
Run the tool
⌘ K
Search every tool
/
Filter the sidebar