Mock Data Generator
Generate realistic fake data for testing: JSON, CSV, SQL, XML with 50+ field types — names, emails, UUIDs, dates, addresses. Runs 100%.
Configure your schema fields and click Generate
Supports JSON, CSV, SQL INSERT, and TSV output
How do I use Mock Data Generator?
Define your schema fields (UUID, Full Name, Email, ISO Date, Price) or click "Load Sample Data".
Set the desired row count (1 to 10,000 records) and select output format (`JSON`, `CSV`, `SQL INSERT`, or `TypeScript`).
Click Generate and copy or download the realistic synthetic dataset.
What features does Mock Data Generator offer?
32 field types: names, emails, UUID, dates, addresses, commerce data
Output to JSON, CSV, SQL INSERT statements, or TSV
Up to 10,000 rows generated in under 1 second in your browser
100% client-side via @faker-js/faker — zero server uploads
Synthetic Data Generation Formats & Bulk Insert Limits
Compares serialization overhead and database batch ingestion limits across output formats.
| Output Format | 1,000-Row Size (Approx) | Null / Type Preservation | Optimal Ingestion Target |
|---|---|---|---|
| JSON Array (.json) | ~185 KB | Native boolean, number, null, nested objects | REST/GraphQL API mocks, MongoDB mongoimport |
| CSV RFC 4180 (.csv) | ~92 KB | Strings only (requires schema cast on import) | PostgreSQL COPY, Excel, BigQuery, Pandas |
| SQL Batch INSERT (.sql) | ~160 KB | Native SQL literals (NULL, TRUE, numeric) | PostgreSQL / MySQL / SQLite seed migrations |
| JSON Lines (.jsonl) | ~180 KB | Line-delimited JSON objects (streamable) | ClickHouse, Elasticsearch _bulk, LLM fine-tuning |
Frequently Asked Questions about Mock Data Generator
Are generated email addresses and phone numbers safe to use in staging environments?
Email domains default to RFC 2606 reserved testing domains (`@example.com`, `@example.org`) or synthetic domains so accidental staging email dispatches never reach real user inboxes.
Why does multi-row SQL `INSERT INTO ... VALUES (...), (...)` outperform single-row inserts?
Grouping 500–1,000 rows into a single multi-row `INSERT` statement amortizes transaction log (`WAL`) flushes and network round-trips, accelerating database seeding by up to 40x.
How are single quotes in names like `O'Connor` escaped across SQL and CSV outputs?
In SQL mode, single quotes are doubled (`'O''Connor'`) per ANSI SQL standards. In CSV mode, fields containing commas, quotes, or newlines are wrapped in double quotes with internal quotes doubled (`""`) per RFC 4180.
Can I generate deterministic mock data for reproducible unit tests?
All synthetic records are generated client-side using a pseudo-random number generator (PRNG), allowing instant generation of up to 10,000 rows without external API rate limits.
Explore Related Developer Tools
REST API Tester
Send HTTP requests (GET, POST, PUT, DELETE) directly from your browser. View response body, headers, status codes, and timing. Export as cURL or Python. No install required.
CSV to JSON Converter
Convert CSV spreadsheets and delimited text into structured JSON arrays with auto-delimiter and dynamic data type detection.
JSON to CSV Converter
Convert JSON object arrays into RFC 4180 compliant CSV spreadsheets ready for Excel, Google Sheets, and SQL imports.
Database ER Diagram Builder
Design database schemas visually with drag-and-drop or DBML code. Export PostgreSQL, MySQL, and SQLite DDL scripts and download PNG/SVG diagrams. No account needed.
CSV ↔ JSON
Convert between CSV and JSON formats with PapaParse engine. Auto-detection and dynamic typing.
JSON to TypeScript & Zod Schema Generator
Convert JSON objects into typed TypeScript interface definitions or Zod validation schemas instantly.