JSON Schema → sample JSON
ClientPaste a JSON Schema and emit one example JSON payload—pick minimal rows (required keys only) or fill every listed property. Same-document $ref is resolved; remote URLs are not fetched.
Learn more: schemas vs instances
Turn a JSON Schema you paste into one readable JSON example—useful for docs, mocks, and onboarding before real traffic exists.
How sampling chooses values
Keywords such as `enum`, `const`, `default`, and `examples` win when present. Strings respect common `format` hints (email, UUID, date-time). Objects honor `required` in minimal mode or emit every listed property in full mode.
What this does not replace
It is not a substitute for integration tests—pair it with Ajv validation on this page (optional after generate) or the full JSON Schema validate tool when you need two-panel edits.
Schema → sample JSON
?
Builds one illustrative JSON document from keywords like type, properties, required, enum, default, and same-document $ref. It does not fetch remote refs.
Optionally run the same Ajv + format validators as the JSON Schema validate page after each generate, or use Validate sample anytime on the current panels.
391 characters total
Minimal mode emits required object keys only; full mode fills every listed property. Enable Ajv checking to confirm the sample matches your schema.
Common use cases
- Bootstrap OpenAPI or README examples when only the schema exists.
- Sketch fixtures for tests before wiring a real API client.
- Explain nested structures to teammates with one deterministic sample JSON.
Common mistakes to avoid
Assuming generated JSON validates every edge case
The generator favors readability over exhaustive unions. Combine with the validate tool and real payloads before shipping.
Expecting remote `$ref` URLs to resolve
Only fragments inside the pasted document are followed. Bundle multi-file schemas first or inline refs manually.
Treating minimal mode as your only contract
Minimal mode skips optional keys entirely—switch to full mode when you need every property stub.
FAQ
Does this send schemas to Toolcore servers?
No. Parsing and generation stay in your browser tab.
Will `oneOf` branches all appear?
No—the tool picks the first branch so output stays single-valued. Split schemas manually when you need separate examples.
Can I validate the sample automatically?
Enable “After generating, validate sample with Ajv” or click Validate sample (Ajv)—same validator stack as the JSON Schema validate page (formats included).
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- json schema to example json online
- generate sample json from json schema browser
- json schema mock payload generator
- draft json schema example instance
More tools
Related utilities you can open in another tab—mostly client-side.
JSON Schema validate
ClientValidate JSON against a schema, infer draft-07 schema from data—Ajv in browser.
JSON Schema multi-file bundle
ClientPaste multiple schema JSON files; expand $ref across names locally—no network fetch.
JSON formatter
ClientJSON format online: pretty-print, minify, validate, escape, download .json.
JSON → OpenAPI draft
ClientTurn sample JSON into a minimal OpenAPI 3 paths entry with an inferred schema—YAML or JSON output.