What is Mock Data Generator?
Mock Data Generator is a powerful developer tool that creates realistic fake data for testing, prototyping, and development. Whether you need sample users for a database, product listings for a UI mockup, or test records for an API, this tool generates it instantly in your browser.
Why Use Mock Data?
Working with real data during development is often impractical or risky. Mock data solves this by providing:
Realistic Test Records
Names, emails, and addresses that look authentic and match real-world patterns
Consistent Schemas
Define your data structure once, generate as many rows as you need
Multi-Locale Support
Generate data matching different countries and languages
Multiple Export Formats
JSON, CSV, SQL INSERT, and TSV ready for your workflow
Who Is This For?
Frontend Developers
Backend Developers
QA Engineers
Designers
Your Data Stays Private
- No server processing — Data is generated client-side using JavaScript
- No uploads — Nothing leaves your device
- No tracking — We don't collect or store any generated data
How to Use Mock Data Generator
Define Your Schema
Start with a preset or build your own schema from scratch:
- Select a preset (User Profile, Product, Blog Post, Order, or Employee) to load a pre-configured schema
- Or click Add Field to create custom fields
- For each field, set the name (column header) and type (data format)
- Drag fields to reorder them as needed
Configure Options
- Set the number of rows to generate (1–500)
- Choose a locale to match the target country's naming conventions, phone formats, and cities
- For Number and Float types, click the settings icon to set min/max values
- For Custom List type, enter your own comma-separated values
Generate & Export
- Click Generate to create the mock data
- Review the data in the preview table
- Click Copy to copy as JSON to your clipboard
- Or click Export to download as JSON, CSV, SQL INSERT, or TSV
Available Data Types
Choose from over 30 data types to build your schema:
Identity Data Types
- ID (auto-increment)
- UUID
- Full Name
- First Name
- Last Name
- Username
- Password
- Avatar URL
Contact Data Types
- Phone
- Street Address
- City
- Country
- Zip Code
Business Data Types
- Company
- Job Title
- Department
- Product Name
- Price
- Category
- Status
Data Types
- Number
- Float
- Boolean
- Date
- Date Time
- URL
- IPv4
- Hex Color
Text Data Types
- Word
- Sentence (Lorem)
- Paragraph (Lorem)
- Custom List
Features
Schema Builder
Build your data structure visually. Add, remove, and reorder fields with drag-and-drop. Each field has a customizable name and one of 30+ data types. The schema updates your preview instantly.
Built-in Presets
Start quickly with five pre-configured schemas designed for common use cases:
User Profile
Product
Blog Post
Order
Employee
Multi-Locale Support
Generate data that matches real-world naming conventions. Each locale provides culturally appropriate names, phone number formats, city names, and address styles.
English
US/UK naming conventions
Vietnamese
Vietnamese names & addresses
Japanese
Japanese naming patterns
Korean
Korean name formats
French
French conventions
German
German naming styles
Spanish
Spanish formats
Chinese
Chinese conventions
Configurable Field Options
Fine-tune specific data types with inline options:
Range Control
- Set minimum value
- Set maximum value
- Generate within bounds
Your Own Values
- Define comma-separated list
- Random selection
- Unlimited options
Live Preview Table
See your generated data immediately in a scrollable table with sticky headers. Numeric values are highlighted in color, and boolean values show green (true) or red (false) for quick visual scanning.
Multiple Export Formats
Export your data in the format that fits your workflow:
JSON
CSV
SQL INSERT
TSV
Frequently Asked Questions
How many rows can I generate at once?
You can generate between 1 and 500 rows per batch. For larger datasets, generate multiple batches and combine them in your target format.
Is the generated data truly random?
Yes, each generation creates fresh random data. Names, emails, and other values are randomly selected from curated data pools for each locale. No two generations produce identical results.
Can I create custom data types?
Use the Custom List type to define your own set of values. Enter comma-separated options (e.g., "red, green, blue") and the generator will randomly pick from your list.
Does changing the locale affect all fields?
The locale affects locale-sensitive fields: Full Name, First Name, Last Name, Email, Username, Phone, Street Address, and City. Other types like UUID, Number, Boolean, and Date are locale-independent.
Can I use the SQL output directly in my database?
The SQL INSERT output uses standard syntax with backtick-quoted column names and properly escaped string values. The default table name is mock_data — update it to match your table name before executing.
Is my data sent to any server?
No. All data generation happens entirely in your browser using JavaScript. Nothing is uploaded, stored, or transmitted to any server.
- 100% client-side processing
- No data collection
- Complete privacy
What browsers are supported?
Mock Data Generator works in all modern browsers including Chrome, Firefox, Safari, and Edge. It uses standard JavaScript APIs and requires no plugins or extensions.
No comments yet. Be the first to comment!