Canonical: https://toolipedia.app/mock-json-from-json-schema

# Mock JSON from JSON Schema

Paste a JSON Schema and generate one or many sample documents that satisfy it, with types, enums, formats, patterns and number ranges respected and a seed for repeatable data.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Mock JSON from JSON Schema

## About Mock JSON from JSON Schema

Test data should look like your real data, and the schema already describes it. Paste a JSON Schema and this generator creates one or many sample documents that satisfy it: required and optional properties, enum and const values, numbers inside minimum, maximum and multipleOf, strings with minLength, maxLength, formats such as email, date, date-time, uuid and uri, simple regular expression patterns, arrays with item counts and uniqueness, and oneOf, anyOf, allOf and local references. A seed makes the data repeatable, so the same seed and schema always give the same documents.

## How to use Mock JSON from JSON Schema
1. Paste the JSON Schema into the schema box, or edit the example.
2. Choose how many documents to generate, a seed, and whether to include every optional property.
3. Copy or download the generated JSON and check the warnings for keywords that were not generated.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.

## Also known as
- mock json from json schema
- generate sample data from json schema
- json schema faker
- fake json from schema
- json schema example generator

## Frequently asked questions

### Will every generated document pass validation?

For the supported keywords yes, by construction. Keywords such as if/then, not, patternProperties and complex regular expressions are not used for generation, so documents may break those rules; the warning lists them.

### Why is the same data produced every time?

The seed controls the random numbers. Change the seed to get a different set of documents, or keep it to reproduce a test fixture exactly.

### Is the data realistic?

It is valid and varied but random: words from a short list, numbers in range and example.com addresses. It is made for tests and demos, never for pretending to be real people.

### Is Mock JSON from JSON Schema free?

Yes. Mock JSON from JSON Schema on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

### Can I put Mock JSON from JSON Schema on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

## Related tools

More free tools that go well with Mock JSON from JSON Schema:
- [JSON Schema Breaking Change Checker](https://toolipedia.app/json-schema-compatibility-checker)
- [JSON to TypeScript](https://toolipedia.app/json-to-typescript)
- [XML Schema Tool: Validate and Infer XSD](https://toolipedia.app/xml-schema-tool)
- [Data to Code Model Generator](https://toolipedia.app/data-to-code-model-generator)
- [JSON Schema generator and validator](https://toolipedia.app/json-schema-generator)
