模拟数据生成

生成逼真的假 JSON 用于测试

(1–100)

Fields to include:

Generated Data

Loading editor...

Generate realistic test data without writing fixtures

Hand-written fixtures get stale, repeat themselves, and never cover the edge cases that show up in production. Generating mock data from a schema produces dozens or hundreds of realistic records — names, emails, dates, prices, addresses — so you can prototype UI, load-test endpoints, and seed local databases without touching real customer data.

Use the generator when you need to

Seed a local database for development

Generate hundreds of users, orders, or products and import them once instead of typing fixtures by hand.

Build UI before the backend is ready

Mock the API response shape so your frontend can iterate on layouts, empty states, and edge cases.

Load-test or stress-test an endpoint

Generate large payloads to validate pagination, sorting, and rendering under realistic data volumes.

How to generate mock data

  1. 1

    Define field names and pick types (name, email, address, date, etc.) in the schema builder.

  2. 2

    Set the number of records you want.

  3. 3

    Click Generate and copy or download the resulting JSON array.

Common mock data workflows

Prototype a dashboard

Generate 200 user records to validate how the table behaves with realistic names and emails.

Build a demo environment

Seed a fresh database with believable data for a sales demo without touching production.

Reproduce a hard-to-find bug

Generate edge-case data (empty strings, very long names, far-future dates) to surface a bug consistently.

相关工具

常见问题

用 schema builder 定义数据结构:选择字段名和类型(name、email、address、number、date 等),再设置生成条数。点击 Generate 即可立刻生成看起来很真实的测试数据。

支持姓名、邮箱、手机号、地址、公司名、职位、日期、UUID、URL、IP 地址、颜色、商品名、价格、lorem ipsum 等,基于 Faker.js,超过 50 种数据类型。

当然可以。mock 数据就是为开发与测试准备的:可用于填充数据库、测试 API、填充 UI 组件或搭建演示环境。数据看起来真实,但完全虚构。

一次可生成最多几千条。工具在浏览器本地运行,性能取决于你的设备。常见场景(10-500 条)通常是秒出。