123024.com · Mock Data Generator

Mock Data Generator

A mock data generator quickly creates simulated records — names, emails, phone numbers, addresses, and more — for software development and testing. Building realistic test data by hand is slow and easy to miss edge cases. This tool uses local templates and randomness to produce JSON you can use for API tests, database seeding, and front-end placeholders.

What is a mock data generator?

Each row includes common fields such as name, email, phone, and address. You choose how many rows to generate (1–50). All values are created randomly in the browser — no network request, no server-side templates.

Compared with online mock services that round-trip to a backend, this page stays fully local so sample data never leaves your device.

Why use mock data?

Front-end: fill lists and forms so UI reviews look real. API testing: vary request payloads and check validation. Database seeding: exercise pagination, search, and stats. Demos: avoid real user data while still looking credible. Docs: provide example JSON responses for APIs.

How to use

1. Set — Count to the number of rows you need (1–50).

2. Click — Generate to create mock records as JSON.

3. Review the output in the result panel.

4. Click — Copy JSON to put the payload on the clipboard.

Examples

Five test users: set Count to 5, click Generate — you get a JSON array of objects with name, email, phone, and address.

Front-end list page: set Count to 10, Generate → Copy JSON, paste into your app as a temporary data source.

FAQ

Is the data real? No — names, emails, phones, and addresses are fictional and for testing only, even when they look realistic.

Can I customize fields? The tool ships common fields (name, email, phone, address). After copying JSON you can edit fields by hand.

Phone format? In Chinese UI, numbers follow mainland China 11-digit mobile style starting with 1; English UI uses a simple +1-555 test pattern.

More than 50 rows? The input caps at 50 per run — generate multiple times and merge if needed. Generation is local, so browser performance is the practical limit.

Is anything uploaded? No. Everything is random-generated in the browser and never sent to a server.

Tips

  • Batch up to 50 rows per generate for bulk testing.
  • Output is standard JSON ready to paste into code or configs.
  • One-click Copy JSON for the full payload.
  • Each row covers name, email, phone, and address by default.