Sample JSON Generator — From a JSON Schema
Turn a JSON Schema into realistic sample documents, respecting types, enums, formats and constraints.
To generate sample JSON from a schema, paste a JSON Schema and the generator walks it to build documents that satisfy every constraint — the declared types, enum values, string formats such as email or date-time, numeric minimums and maximums, array lengths and nested objects, including local $ref pointers.
Runs in your browser- Schema support
- type, properties, items, required, enum, const, format, minimum/maximum, minLength/maxLength, minItems/maxItems, oneOf, anyOf, allOf and local $ref
- Formats honoured
- email, uri, uuid, hostname, ipv4, ipv6, date, time, date-time and duration
- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Which JSON Schema drafts are supported?
Why turn off optional properties?
Can I use an OpenAPI schema?
How to use the sample json generator
- 1Enter or paste your json schema.
- 2Set the documents.
- 3Set the items per array.
- 4Set the maximum nesting depth.
- 5Turn "Always include optional properties" on or off as needed.
- 6Enter or paste your wrap in a key.
- 7Turn "Pretty-print" on or off as needed.
- 8Enter or paste your seed.
- 9The result appears immediately — copy or download it.
Embed this tool
Put the working sample json generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
JSON Schema GeneratorInfer a JSON Schema from example data, detecting types, string formats and required keys.Mock Data GeneratorGenerate realistic fake test data in 14 formats from 100+ field types, with reproducible seeds.JSON DiffCompare two JSON documents and see exactly which keys were added, removed or changed.Sample Dataset GeneratorDownload ready-made sample datasets — users, orders, products, transactions — as CSV, JSON, SQL or Excel-ready TSV.Sample API Response GeneratorGenerate realistic REST, JSON:API, GraphQL and error-envelope responses with pagination.Data Format ConverterConvert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser.
Last updated
More samples & mock data