Generate sample data from a JSON Schema — realistic, valid, instantly
Paste a schema. SchemaBox generates a realistic JSON example that respects it — real names, cities, emails, dates and prices, never "xxx" or "string". Deterministic: same schema, same sample, every time — unless you hit Regenerate. Free, no account, nothing leaves your browser.
Try an example below — instant, no setup needed.
Options
Your sample data will appear here — click Generate, or load an example above.
“Validate this sample” copies the sample and opens the Validator — paste it in the left box, then paste your schema in the right box.
Tip: press Ctrl+Enter to generate. Generation runs entirely in your browser — nothing is uploaded.
Result
How sampling works
- Same schema + same seed → same sample, every time. The seed is a hash of your schema; Regenerate bumps it by one for a different sample. The seed is shown above the sample — share schema + seed to reproduce the exact same sample.
- Values are realistic: names, cities, emails, dates, prices — picked from small built-in lists, never "xxx" or "string". Field names guide the choice (an "email" field gets an email, a "city" gets a city).
- Every sample is checked against your schema with Ajv 2020, right here in your browser. If Ajv fails to load, the check is skipped and generation still works.
What V1.9 does not do (yet)
- $ref is not resolved — inline the definition to generate a sample.
- anyOf/oneOf: only nullable pairs (X or null) are supported.
- allOf: a single branch only — merging several branches is not supported.
- Patterns are honoured whenever they can be: dates, date-times, emails, ISBN, currency and country codes, plus most literal / class / group / alternation patterns. An exotic pattern (lookahead, backreference, …) is still approximated — and the page says so honestly instead of claiming the sample is valid.
- "not" is ignored, and if/then/else is ignored.
- Boolean schemas (true/false) carry no shape to generate from.
- Dates are picked between 2024 and 2026, unless the schema sets date bounds.
When something is not supported, the generator says so clearly — it never invents a fake sample.
Generation is deterministic: same schema, same seed, same sample. No AI, no server, no surprises. Need a schema? Generate one from plain words with StrictJSON →