Skip to main content

Mock Data Generator

Define a schema with field names and types — generate a realistic JSON array instantly. Perfect for test fixtures, Prisma seeds, Storybook stories, and API mock responses. Runs entirely in your browser.

✓ name, email, phone, date, uuid, url ✓ number, boolean, address, company ✓ Up to 100 records ✓ Copy as JSON array

Schema Fields

Options

Frequently Asked Questions

What field types can I generate mock data for?▼

This generator supports the most common schema field types: name (first, last, full), email, phone, date (ISO format), number (integer ranges), boolean, uuid (v4 format), url, address, company, and custom string arrays. Each type generates realistic-looking data — not just random strings — making it useful for UI development and API testing.

How do I use the generated mock data in my tests?▼

Copy the JSON output and use it as fixture data in your test files. For Jest/Vitest, save it to a __fixtures__/users.json file and import it. For API mocking with MSW (Mock Service Worker), use it directly in your route handlers. For Playwright, use it with page.route() to intercept and return mock responses.

Can I generate nested objects or arrays of objects?▼

This tool generates flat objects and arrays of objects. For deeply nested structures, generate the individual objects separately and compose them in your code. For complex schemas, consider using libraries like Faker.js (faker-js) for programmatic generation, or Zod + zod-mock for TypeScript schema-driven generation.

What is a UUID and when should I use it for IDs?▼

UUID (Universally Unique Identifier) v4 is a randomly generated 128-bit number formatted as xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx. Use UUIDs as IDs when you need globally unique identifiers across distributed systems, when you want to avoid sequential ID exposure (which reveals record count), or when you're pre-generating IDs client-side before inserting into a database.

How realistic is the generated data?▼

The generator uses curated lists of real first names, last names, company names, domains, and street names. Email addresses use realistic patterns ([email protected]). Phone numbers follow US format. Dates are random within the last 5 years. While not as comprehensive as Faker.js, the output looks realistic enough for UI development and testing.

Can I use this for generating test fixtures for Prisma or TypeORM?▼

Yes — generate the JSON array, then map it to your Prisma createMany() or TypeORM insert() calls. For Prisma: prisma.user.createMany({ data: generatedArray }). For TypeORM: repository.save(generatedArray). The field names in the schema builder should match your model field names exactly.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

JSON Diff Viewer JSON Diff JSON Formatter Pro JSON Path Finder YAML to JSON Converter API Response Mock Generator CSV to JSON Converter JSON ↔ YAML Converter JSON Schema Form Builder API Mock Server Config Generator Protobuf to JSON Converter CSV JSON Transformer JSON Schema to Zod Converter Jest Mock Generator JSON Formatter & Validator JSON Schema Generator JSON to CSV Converter HTTP Mock Response Builder Jest Testing Framework Guide TOML to JSON Converter OpenAPI Mock Generator API Response Mocker JSON to TypeScript Interface package.json Validator & Audit TOML to JSON Converter package.json Generator Mock Service Worker (MSW) API Mocking Guide Fake Data Generator Grafana Dashboard JSON Validator Vitest Guide — Vite-native Testing Playwright E2E Testing Guide Cypress Frontend Testing Guide LLM JSON Schema Builder Grafana Dashboard JSON Builder OpenAI Function Calling Generator AI Unit Test Generator — Pro Tool API Response Formatter & Analyzer HTTP API Tester JWT Builder JWT Decoder TOML Validator YAML Validator & Formatter PWA Manifest Generator Biome Config Generator Package Lock Analyzer Feature Flag Config Generator GCP Service Account Key Checker Azure ARM Template Validator SBOM Generator JWT Debugger Pro TypeScript tsconfig.json Generator k6 Load Test Script Generator Chrome Extension Manifest Generator Playwright E2E Test Generator YAML Validator Pro MCP Endpoint Tester MCP Server Config Builder Prompt Injection Tester LangGraph Workflow Visualizer AWS IAM Policy Generator GCP Service Account Key Auditor Expo App Config Generator API Test Case Generator LLM Prompt Template Builder NFT Metadata Generator

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →