Get Started Free

More about generating test data for MongoDB

Seeding a collection with believable data makes it much easier to try out queries, indexes, aggregation pipelines and UI screens before real users arrive. This tool builds the documents for you and wraps them in a script you can run as-is.

How to use the script

Realistic, consistent records

Fields in one document agree with each other: the email is built from that document's first and last name, and the city, country, postal code and coordinates all describe the same place. Generated ObjectIds carry timestamps from the last few years, so they sort roughly by creation time like real ones.

Frequently asked questions

How do I insert fake data into MongoDB?

Pick a preset or add your own fields, set the number of documents, then copy the generated mongosh script and paste it into mongosh. It calls insertMany on your collection with the generated documents.

Can I generate the same data again?

Yes. Generation is seeded: the same seed, fields and settings always produce exactly the same documents. Change the seed, or click New data, to get a different set.

Does the generated data contain real people?

No. Names are combined at random from common first and last names, emails use reserved example.com domains, and phone numbers use the 555 range, so nothing maps to a real person or a deliverable address.

How many documents can I generate?

Up to 10,000 at a time. For bigger collections, run the script several times with different seeds.

VisuaLeaf

Explore your generated data visually in VisuaLeaf

Open the collection you just seeded in VisuaLeaf to browse documents in a table or tree view, build queries and aggregation pipelines visually, and see the schema of your data as a diagram.

MongoDB & SQL in one client
Visual query & aggregation builders
Live visual schema diagrams
Charts, dashboards & query profiler
Connection manager for local, cloud & teams
Free Community Edition