Mock Data from JSON Schema
- The schema is not valid JSON: {msg}
- Could not generate data from this schema: {msg}
- Could not resolve the reference {ref}. Only references inside the same schema (starting with #/) are supported.
- Records
- Seed
- The same seed always gives the same data.
- Optional properties
- Always include
- Include at random
- Required only
- Realistic values from property names
- Use examples and defaults from the schema
- Output
- JSON array
- One JSON object per line
- Generate again
- New seed
- Supported: types, enum, const, formats, string length and simple patterns, number ranges and multipleOf, arrays and tuples, required and optional properties, $ref, allOf, oneOf and anyOf. Conditional keywords (if, then, else) and not are ignored, and complex regular expressions fall back to plain text.
- Copy
- Download
- {n} characters
- Load example schema
About this tool
Paste a JSON Schema and get realistic sample data that follows it, for tests, demos and API mocks. It understands formats such as email, uuid and date-time, enums, number and length limits, nested objects, arrays and $ref. Set a seed to get the same data every time. Everything runs in your browser.
Frequently asked questions
What is Mock Data from JSON Schema?
Generate realistic sample JSON that follows a JSON Schema, with a repeatable seed. It is one of the JSON, XML & YAML tools on MyCodeTips.
How do I use Mock Data from JSON Schema?
Open the tool, enter or paste your input, and the result appears right away. Use the Copy button to copy it.
Is Mock Data from JSON Schema free to use?
Yes. It is free to use and does not need an account.
Is my data safe with Mock Data from JSON Schema?
Yes. It runs entirely in your browser, so what you enter is never uploaded to our servers.
Can I share my result?
Yes. Use the share buttons below the tool to post a link or copy a link to the tool page.
Which tools are related to Mock Data from JSON Schema?
JSON Schema Generator, JSON Formatter & Validator, JSON to Types Generator.
- JSON Formatter & Validator
- JSON to CSV Converter
- JSON to Types Generator
- JSON to XML Converter
- Send output to…
- Nothing to send yet.
- Received output from {tool}
- Undo
- Dismiss