Creative Workflow Helpers

JSON Schema Generator from Sample

Paste one or more sample JSON payloads and get a starter JSON Schema inferred as you type. Add more samples with a --- line to merge shapes. Nothing is uploaded — everything runs in this tab.

Runs in your browser v1.0.0

Start from an example

live

Sample JSON

one or more

Separate multiple samples with a line containing only ---. Arrays merge their items, and objects merge their properties.

Generated schema

live

Paste a sample or load an example.

Nothing to infer yet

Paste a JSON sample above or load an example to generate a schema.

Options

advanced

How it works

Every sample is parsed with JSON.parse() in this page. The inferrer walks the values and decides types (null, boolean, integer, number, string, array, object), merges object properties and array items across samples, and marks a key required only when it appears in every object. Mixed types become a type array such as ["null", "string"]. Detected string formats use the standard format annotation. The result is a starter schema — review it before relying on it for validation.