← All text tools

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.

  • Free
  • No sign-up
  • Works on any device

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?

Also known as

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.