JSON Schema Generator
12 toolsInfer a JSON Schema from a sample.
Runs in your browser — your files and text stay on your device
Everything you'd need a dedicated JSON app for — formatting, a collapsible tree view, structural diffing, converting to/from CSV, YAML, and XML, generating TypeScript interfaces and JSON Schemas, querying with JSONPath, and validating JSON Lines — runs entirely client-side using your browser's native JSON engine, so nothing you paste is ever sent to a server.
Format & ValidateTree ViewJSON DiffJSON → CSVJSON ↔ YAMLJSON ↔ XML→ TypeScriptSchema GeneratorSchema ValidatorJSONPath TesterSort KeysJSON Lines
JSON Schema
How to use this tool
- 1Paste a sample JSON payload.
- 2A draft-07 JSON Schema is inferred automatically.
- 3Copy it, or test it against other payloads in the Schema Validator tab.
Frequently asked questions
Does it mark every field as required?
Yes — since it only sees one sample, every key present is assumed required. Edit the generated schema's "required" array by hand to make fields optional.
Is my JSON uploaded anywhere?
No, the schema is generated entirely in your browser.