Skip to content
GENERATORS

Fake Test Data Generator – JSON Records

Generate fictional JSON test records.

  • Free
  • No signup
  • Runs in your browser

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Fake Test Data Generator

About Fake Test Data Generator

Good test data lets you build and check a table, a form or an API without using real customer information. This generator creates a JSON array of fictional user records, each with an id, a name, an email address on the reserved example.com domain and an active flag.

Type a number from 1 to 50 in the input box to set how many records you get. All names are made up, and example.com is reserved for documentation, so no real mailbox can ever receive a message sent during testing.

How to use Fake Test Data Generator

  1. Type how many records you need, from 1 to 50.
  2. Click Run Tool to generate the JSON.
  3. Copy it into your mock server, database seed, Postman collection or front-end code.

Example

Input

3

Output

[
  {
    "id": 1,
    "name": "Aman",
    "email": "user1@example.com",
    "active": true
  },
  {
    "id": 2,
    "name": "Kiran",
    "email": "user2@example.com",
    "active": false
  },
  {
    "id": 3,
    "name": "Simran",
    "email": "user3@example.com",
    "active": true
  }
]

Common uses

  • Populating a table or a list in a UI prototype.
  • Seeding a development database with predictable records.
  • Writing automated tests that need sample users.

Privacy and safety

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Frequently asked questions

Is the data random?

The names cycle through a fixed list and the active flag alternates, so the output is predictable on purpose. That makes tests repeatable.

Can I use it for real emails?

No. The addresses use example.com, which is reserved and cannot receive mail. Replace them if you need working addresses.

How do I convert it to CSV?

Paste the result into the JSON to CSV Converter on this site.

Learn to build this yourself

Free tutorials and courses on NHP Learning cover PHP, JavaScript, SQL and WordPress, from the basics to real projects.