Mock Data
Fake Data Generator
Generate realistic mock data for testing and export as JSON, CSV, or SQL.
Fields
About Fake Data Generator
The Fake Data Generator is a versatile tool for creating massive datasets of mock data. It acts as a random user generator, populating custom fields like names, emails, and addresses to create realistic test data for your applications.
Seed your development databases efficiently. Writing a sql seeder or json generator script manually is tedious; this tool automates the process, allowing you to stress-test your UI or backend with thousands of rows of dummy data in seconds.
Define your schema by adding fields (e.g., First Name, City). Choose how many rows you need. Click download to get the result as a JSON file, CSV, or SQL Insert script using the powerful faker library.
Under the Hood
Data generation is powered by `@faker-js/faker`, which provides localized data providers for names, addresses, and commerce items. The tool builds an array of objects based on the user-defined schema. Exporting involves transforming this in-memory array: `JSON.stringify` for JSON, a custom string builder for CSV (handling escaping), and a SQL INSERT statement generator that maps JS types to SQL types (e.g., Dates to ISO strings, text to quoted strings).