ilovekit

JSON Schema Generator

12 tools

Infer a JSON Schema from a sample.

Runs in your browser — your files and text stay on your device

Infer a JSON Schema from a sample document. The result is a starting point: a single sample can't show which fields are optional or what values are allowed, so tighten the schema by hand. It runs locally in your browser.

Format & ValidateTree ViewJSON DiffJSON → CSVJSON ↔ YAMLJSON ↔ XML→ TypeScriptSchema GeneratorSchema ValidatorJSONPath TesterSort KeysJSON Lines
JSON Schema

How to use this tool

  1. 1Paste a sample JSON payload.
  2. 2A draft-07 JSON Schema is inferred automatically.
  3. 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.

Guides

All guides →