JSON Schema

JSON to JSON Schema

Infer a draft-07 JSON Schema from a JSON sample.

JSON input
Output

Result appears here after you select

{ } How to use

  1. Paste a representative JSON document.
  2. Select Process to get a draft-07 schema describing its shape.

{ } How it works

JSON to JSON Schema works on the text you provide. Select Process ▸ and it runs entirely in your browser — nothing is uploaded to a server — then shows the result in the Output panel.

Input

  • JSON input — paste or type your input in the left panel (use Sample for an example)

Output

JSON — copy it, download it, or switch the Output panel to Tree view to explore it.

{ } Common uses

  • Get a first schema for an API response instead of writing one from scratch.
  • Document the shape a config file is expected to have.
  • Produce a schema to validate against, then tighten it by hand.

{ } Limitations

  • Every property present in the sample is listed as required, because a single document cannot show what is optional. Trim that list yourself.
  • Array items are typed from the first element only, and an empty array becomes an unconstrained items schema.
  • Only types are inferred — no formats, no patterns, no minimum or maximum, and no additionalProperties. A whole number becomes integer, so 1.0 in your sample types as integer.

{ } FAQ

Is my data uploaded to a server?

No. Everything runs locally in your browser — your files never leave your device.

Can I process more than one file at once?

This tool works on one input at a time.

Is this tool free?

Yes — it’s completely free and needs no sign-up.

Is the schema ready to use?

It is ready to validate the exact shape you pasted, which makes it a good starting point and a poor final answer. Loosen required, add formats for dates and emails, and set constraints where the data has them.