About this tool
Build a small schema by naming fields and choosing a type for each, such as full name, email, UUID, price, date or sentence, and get as many JSON records as you need for fixtures or a prototype API. Dotted names like address.city produce nested objects, and you can sprinkle in nulls to test how your code handles missing values. Generation happens in your browser.
How to use Mock JSON Generator
- Add fields and choose a type for each.
- Use dots in names to nest objects.
- Set the number of records, indentation and an optional seed.
- Copy the JSON or download it as a file.
Frequently asked questions
Can I get a single object instead of an array?
Yes. Tick Single object instead of array to generate one record.
Will the same schema give the same records?
Only if you set a seed. Without one, every change or click on Regenerate produces new values.