JSON Template Creator

Pick a template or paste your own JSON object, edit it, then generate as many sample records as you need.

How to use the JSON Template Creator

Pick a template such as a user profile, product, address or API response, or paste one JSON object of your own. Edit the keys and example values until they match your app. To get a test dataset, enter how many records you need (up to 100) and click Generate records: the tool keeps your structure and fills each record with different but realistic values. Then copy the result or download it as a .json file. Everything runs in your browser.

What the templates are for

Example workflow

Suppose you are building an orders screen and need ten sample customers. Choose User profile, rename fullName to name if that is what your app expects, add a field such as "city": "Pune", set Records to 10 and click Generate records. You get an array of ten users with ids 1 to 10, different names, matching emails such as priya.silva2@example.com, a mix of active and inactive accounts, creation dates one day apart and real city names. Click Download .json and load the file in your app or test.

Frequently asked questions

Are these official standards?
No. They are illustrative examples. Field names and structure should be adapted to your own system or API specification.

Is anything sent to a server?
No. Templates are generated and edited in your browser.

Can I add my own keys?
Yes. The editor accepts any text; use Validate to confirm the result is correct JSON.

How are the generated records different from each other?
The tool reads each field name and value type. id counts up, dates move forward one day per record, emails and usernames get matching fictional names, prices and quantities change within a sensible range, and city, state, country, postal code and coordinates are kept consistent with each other. Fields it does not recognise, such as currency or theme, keep the value you typed. The output is the same every time for the same input, so tests stay repeatable.

Designing a good JSON structure

A template is only a starting point. When you adapt it for a real app or API, a few decisions made early save a lot of rework later, because changing a structure after other code depends on it is painful. These are the conventions experienced API designers tend to follow.

The API response wrapper

The “API response” template wraps the actual records in data and adds status, message and pagination. This envelope pattern lets a client always find results in the same place and check paging without guessing. Whether to use an envelope is a design choice: some APIs return a bare array and put paging details in HTTP headers instead. Either works if it is consistent across every endpoint.

Need data served over HTTP instead of a file? The Fake API & Mock Data Generator returns up to 100 items per topic from a real endpoint, and the Demo API supports GET, POST, PUT and DELETE without a key. Use this tool when you need records that match your own field names.

Limitations

Sample values such as emails and addresses are fictional. Do not treat them as real data. See our Disclaimer and Privacy Policy. Browse the full tools directory. Related tool: JSON Formatter & Validator.

Learn more: read our Developer Guides, articles on JSON, REST APIs and URL encoding.