DevToolbox

โ†‘ โ†“ to select ยท Enter to open ยท Esc to close

Mock Data Generator

Generate sample records from a TypeScript interface or a field list.

Powered by Faker.js โ€” realistic data for every field

๐Ÿ’ก Smart detection: email โ†’ emails, startTime โ†’ datetimes, isActive โ†’ booleans, price โ†’ currency, and 30+ more

nameโ†’ fullNameemailโ†’ emailageโ†’ agecompanyโ†’ company

How to use the Mock Data Generator

Generate sample records from a TypeScript interface or a field list.

Steps

  1. Choose Interface mode and paste a TypeScript type, or choose the field editor.
  2. Set the number of rows and output format, then select Generate.
  3. Copy the generated sample when it matches the shape you need.

Example: A small interface

type User = { name: string; email: string; age: number }

Limitations

Generated values are synthetic examples. Field-name detection is heuristic, so review the output before using it in fixtures or demos.