JoyToolsJoyTools

Mock Data Generator

100% Client-Side Private — Zero Server Uploads

Generate realistic fake data for testing: JSON, CSV, SQL, XML with 50+ field types — names, emails, UUIDs, dates, addresses. Runs 100%.

🔒 100% Client-Side: All data is processed locally in your browser and never leaves your device (Zero Server Uploads).
E-E-A-T Security Proof →
Interactive Workspace
Schema Fields (7)

Configure your schema fields and click Generate

Supports JSON, CSV, SQL INSERT, and TSV output

Share & Developer Embed

How do I use Mock Data Generator?

1

Define your schema fields (UUID, Full Name, Email, ISO Date, Price) or click "Load Sample Data".

2

Set the desired row count (1 to 10,000 records) and select output format (`JSON`, `CSV`, `SQL INSERT`, or `TypeScript`).

3

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.

Mock Dataset Output Formats, Payload Sizes (1,000 Rows), and Ingestion Use Cases
Output Format1,000-Row Size (Approx)Null / Type PreservationOptimal Ingestion Target
JSON Array (.json)~185 KBNative boolean, number, null, nested objectsREST/GraphQL API mocks, MongoDB mongoimport
CSV RFC 4180 (.csv)~92 KBStrings only (requires schema cast on import)PostgreSQL COPY, Excel, BigQuery, Pandas
SQL Batch INSERT (.sql)~160 KBNative SQL literals (NULL, TRUE, numeric)PostgreSQL / MySQL / SQLite seed migrations
JSON Lines (.jsonl)~180 KBLine-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.