Skip to main content

TypeScript Mock Data Generator

Paste a TypeScript interface and get realistic JSON mock data back. The generator picks plausible values from field names — email looks like an email, name looks like a name, id is an integer. Runs entirely in your browser.

How field names are mapped

The generator looks at the field name to pick a plausible value:

  • id, *Id → sequential integers
  • email[email protected]
  • name, firstName, lastName → sample names
  • url, websitehttps://example.com/...
  • city, street, postcode → address-shaped strings
  • createdAt, updatedAt → ISO timestamps
  • isActive, enabled, is* → booleans

Determinism

The seed lets you reproduce identical output every run — useful for snapshot tests. Change the seed to get fresh data with the same shape.

For the inverse direction (paste JSON sample, get TS interface), see JSON to TypeScript.