05 / Test Data / json-test-data

JSON Test Data Generator

Generate realistic synthetic JSON records with nested objects and arrays.

ReadyLocal processing
05 · Workspace

How to use

  1. 01Tick the fields you want in each record from the 16 checkboxes: id, name, firstName, lastName, email, phone, address, city, country, company, createdAt, active, age, score, website and tags.
  2. 02Enter the number of records in the Records box (1 to 10,000).
  3. 03Press Generate JSON to build an array of records containing only the fields you ticked.
  4. 04Switch the Output view between Raw (pretty-printed JSON) and Tree (collapsible explorer) to inspect the result.
  5. 05Copy the JSON, or use Download .json to save it as test-data.json.

What is this tool?

The JSON Test Data Generator is the quick-pick alternative to a schema builder: instead of designing fields and types yourself, you tick from a fixed set of 16 common record fields and get an array of ready-made objects in one click. Two fields are pre-shaped for realism — address is a nested object and tags is an array of strings — so the output already exercises nested parsing. All values are synthetic, drawn from small built-in word lists, and generated locally in your browser; nothing is uploaded.

JSON Test Data Generator vs JSON Generator

Both tools produce mock JSON, but they solve different problems. The JSON Generator is a schema editor: you name every field, choose from 20 data types, nest Object and Array nodes as deep as you like, set a root key and export to CSV. This tool skips all of that. The field names and their types are fixed, you only choose which ones appear, and the output is always a top-level JSON array exported as .json.

Use this tool when you need a believable "user-ish" or "customer-ish" payload in seconds, for example to fill a table component or paste into a request body. Reach for the JSON Generator when your fixture must match a specific API contract with your own key names or deeper nesting.

What each generated field contains

id is a version 4 UUID. email follows the pattern firstname plus two digits at example.com, phone uses the fictional +1-555 range, and website is an https://example.com URL. createdAt is a date in YYYY-MM-DD form between 2020 and 2026, active is a boolean, age is an integer from 18 to 80, and score is a decimal between 0 and 1000 with two decimal places.

address is an object with street, city, postalCode (five digits) and country. tags is an array of one to three short lowercase words such as "kernel" or "payload". A record with the default selection looks like { "id": "…", "name": "Priya Okafor", "email": "liam42@example.com", "address": { "street": "412 Cedar Lane", "city": "Lyon", "postalCode": "58213", "country": "Kenya" }, "active": true, "tags": ["delta", "proxy"] }.

Fields are random, not cross-consistent

Every field is generated independently. The email does not derive from the name, firstName and lastName are not the parts of name, and the city inside address need not belong to its country. That is fine for rendering, parsing, pagination and serialization tests, but not for logic that checks one field against another. If you need a name and email that match, use the Random User Generator, which builds the username and email from the same first and last name.

Common use cases

  • Filling a data table or list component with a few hundred rows while building the UI
  • Pasting a realistic array into a mock API response or an MSW/WireMock stub
  • Testing that a client correctly parses nested objects (address) and string arrays (tags)
  • Creating a large JSON file (up to 10,000 records) to check rendering and parsing performance
  • Producing quick fixtures for snapshot or serialization tests

FAQ

How is this different from the JSON Generator?

This tool uses a fixed set of 16 field names you toggle on or off. The JSON Generator lets you define your own field names, types, nesting depth, root key and CSV export.

Can I rename fields or add my own?

No. Field names are fixed here; use the JSON Generator if you need custom keys or types.

How many JSON records can I generate at once?

Up to 10,000 records per run.

Does the output include nested objects and arrays?

Yes. address is a nested object with street, city, postalCode and country, and tags is an array of one to three strings.

Is the generated data real?

No. Values are picked from small built-in lists of fictional names, companies and places, emails use example.com and phones use the 555 range.

Is my data sent to a server?

No. Records are generated entirely in your browser.