JSON Mock Data Generator

Generate realistic mock JSON data from JSON schemas for testing and development

JSON Schema Input

Loading...

Generated Mock Data Output

Loading...

Frequently Asked Questions

What is mock data generation?

Mock data generation creates realistic fake data based on JSON Schema definitions. It's useful for testing, development, and prototyping when you need sample data that matches your data structure.

How does the generator work?

The generator analyzes your JSON Schema and creates data that conforms to the defined types, constraints, and formats. It supports strings, numbers, booleans, arrays, objects, and various string formats like email, date, and UUID.

What generation options are available?

Access generation options through the settings panel. You can control array sizes, set a randomization seed for reproducible results, adjust the probability of optional properties being included, and choose whether to fill all properties or generate minimal data.

What schema features are supported?

The generator supports basic types, object properties, arrays, string formats, enums, const values, minimum/maximum constraints, and composition keywords like anyOf and oneOf. Complex features like $ref are not currently supported.

How can I make generation reproducible?

Use the seed option in the settings panel to generate the same data every time. This is useful for consistent testing scenarios or when you need to recreate specific data sets.

Can I control the data volume?

Yes, adjust the array count to control how many items are generated in arrays, and use the optionals probability to control how often optional properties are included in generated objects.