Mock Data Generator
Create custom schemas to generate realistic fake data for your applications.
generator
data
json
A Developer's Guide to the Mock Data Generator
The Mock Data Generator is a flexible and powerful tool for creating large amounts of realistic, fake data for use in development, testing, and application demos. It allows you to build a custom data schema and then generate structured data in multiple formats.
Features
- Custom Schema Builder: You have full control over the structure of your data.
- Add or remove fields as needed.
- Name each field (this becomes the key in JSON or the column header in CSV).
- Choose from a wide variety of data types powered by Faker.js.
- Rich Data Types: Generate realistic data for many categories, including:
- Person: First names, last names, full names, job titles.
- Internet: Emails, usernames, URLs, IP addresses.
- Location: Addresses, cities, states, countries.
- IDs: UUIDs, MongoDB ObjectIDs.
- And much more!
- Bulk Data Generation: Specify how many rows of data you need.
- Multiple Export Formats: Export your generated data as:
- JSON: A standard array of objects.
- CSV: Comma-Separated Values, ready for any spreadsheet program.
- XML: A structured XML document.
- Live Preview: See a preview of your data in a table as you build your schema.
How to Use
- Build Your Schema:
- In the "Schema Builder," start by defining your fields.
- For each field, provide a Field Name (e.g.,
user_email
). - Select a Data Type from the dropdown menu (e.g.,
internet.email
). - Use the "+ Add Field" and trash can buttons to add or remove fields.
- Set Quantity: Enter the desired number of rows in the "Number of Rows" input.
- Preview the Data: A table at the bottom will show a live preview of the data generated from your schema.
- Export: Click one of the export buttons ("Export JSON," "Export CSV," or "Export XML") to download a file containing the full set of generated data.