Why a browser mock data generator#
Teams need realistic placeholder rows for UI demos, API fixtures, Storybook stories, and load tests — without pasting production PII into a third-party form. A mock data generator online that runs locally keeps sample names and emails on your machine while still giving you structured JSON or CSV you can drop into tests.
This tool is a lightweight fake data generator online: no npm faker bundle, no account, and no upload. Templates cover the common shapes (users, products, addresses), and the custom checklist lets you mix fields when a fixed schema is not enough.
JSON vs CSV for fixtures#
Search demand for mock data generator json usually means Nest/Express fixtures, frontend mocks, or seeding scripts that JSON.parse a file. Pretty-printed JSON keeps nested objects readable and matches how most JavaScript tooling expects sample data.
Mock data generator csv fits spreadsheets, bulk imports, and data pipelines. Headers follow the selected field ids (id, fullName, email, …), and cells with commas or quotes are escaped so Excel and csv-parse stay happy.
Seeds and reproducibility#
Without a seed, each Generate pass draws fresh values (via the Web Crypto API). With a seed string or number, the same template, fields, and count always yield the same rows — useful when a PR review or CI assertion needs a stable fixture instead of a moving target.
Seeds are hashed into a small PRNG (mulberry32). They are for determinism in demos and tests, not for cryptography. Treat generated emails and names as clearly fake sample data.
Using the output in JavaScript#
People looking for a mock data generator javascript workflow typically want something they can paste into a .json file or import in Vitest/Jest. Download JSON, save it next to your tests, and import it as a module or read it with fs in Node.
For Playwright or Cypress, CSV or JSON fixtures avoid hard-coding dozens of objects in the spec. Regenerate with the same seed when the schema changes so reviewers can re-run and get an identical sample set.