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.
Input
Paste or edit your JSON, then click “Run tool”.
Type, paste or drop a file
JSONLn 1, Col 1Spaces: 2UTF-838 bytes
Output
Draft schema (read-only).
Read-only
JSONLn 1, Col 1Spaces: 2UTF-80 bytes
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
- Paste or type your JSON into Input, drop a file onto it, or press Example to load a sample.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- 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