🎲 Mock JSON Generator

Generate realistic mock JSON data for testing APIs and UIs. Define a schema with types, arrays, and nested objects. Free online mock data generator — no signup needed.

How to Use

1

Build your schema

Click "Add Field" to add fields. Set a name for each field and choose a data type.

2

Set record count

Enter the number of records to generate (1–100) in the Records input.

3

Generate and copy

Click Generate to produce your mock data. Click Copy JSON or Download to use the output.

Frequently Asked Questions

What is mock data used for? +
Mock data is used during development and testing when real data is unavailable. It lets you build and test UI components, populate databases for demos, test APIs with sample payloads, and create presentations without using sensitive production data.
What field types are available? +
Available types: firstName, lastName, fullName, email, phone, address, city, country, date, dateTime, number, float, boolean, UUID, username, URL, IP address, color, and lorem ipsum text.
How many records can I generate? +
You can generate 1 to 100 records at a time. Each record is a JSON object with the fields you defined.
Is the generated data realistic? +
Yes — names, emails, and phones follow realistic patterns. Names are drawn from a built-in dataset of common first and last names. Emails are generated using the first/last name if those fields exist in your schema.
Can I download the generated JSON? +
Yes — click Download JSON to save the output as a .json file. You can also click Copy to copy it to your clipboard for pasting into your project or API testing tool.


完整指南:模拟JSON数据生成器

什么是模拟数据?

在真实API就绪前,模拟数据对前端开发、可重现的单元测试、产品演示和快速原型设计至关重要。真实的模拟数据能发现最小数据集中不会出现的UI问题。

如何使用

  1. 定义模式,指定字段和类型。
  2. 调整记录数量
  3. 生成并复制数据用于项目。

专业技巧

🧰 50+ Tools