JSON generator

Save and share JSON template
Your JSON template has been permanently saved and you (or anybody) can access with this link:
The URL has been copied to the clipboard.
Your JSON template

JSON generated

Options for exporting generated JSON files

This tool allows you to generate random JSON files from a template.

You can generate multiple JSON files at the same time (exported to a single ZIP file).

Short user guide:
Fill in the editor "Your JSON template" and click on the "Generate" button. The "JSON generated" editor will contain the result.
The editor contains only the first JSON file generated. You can dowload the other JSON files below the editor. You can also download a ZIP file containing all the generated JSON files.

You can see the user guide to help you to use this JSON Generator Online.

User guide

This tool allows to generate JSON data, and export the generated JSON files.

How to Generate JSON files?

  • Type in the editor "Your JSON template" your template. On the right side of the page, you have an "Available tags" section which shows you the available tags that you can use.
  • You can also use tag in a property name. The tag must be in a string, enclosed in double curly brackets. Example:
    		"{{firstname()}}": {
    				"age": random(18, 100)
  • Below the editors, you can indicate the number of json files that you want to generate.
  • Click on the "generate" button to generate your json data.
    The editor "JSON generated" only contains the first JSON file. The buttons "copy to clipboard" and "download" allows you to retrieve the first JSON file.
    All the generated json files are available below the editors.

Why generate JSON files ?

There are several reasons to generate dummy JSON files.

  • Testing: Sometimes it is necessary to have JSON data in order to make tests. It is important to test the application's ability to handle various types of data. By generating dummy JSON files, developers can create test data sets to ensure that their applications work as expected.
  • Sample Data: In some cases, developers may need to provide sample data for users to test their application. By generating dummy JSON files, developers can create sample data that can be easily shared with users.
  • ...

Thisdummy JSON generatorallows you to meet these needs, you cangenerate JSON fileswith a few clicks.

JSON data generator

ThisJSON creatorallows togenerate jsonfiles. You can create complex JSON objects/arrays, with a tree structure of several levels. You can nest arrays inside objects, and vice versa.

You have many tags available to generate your data. Some are more complex than others to use. The editor is not very user friendly, but on the other hand you can generate complex data.

If you need to generate simple json objects (no tree or array), you can use ourCSV data generator(You must select the JSON format). It is easier to use, and provides an API.

This tool is currently in beta. Do not hesitate to make a comment in order to indicate the features which seem useful to you!

You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).


atom-2020-08-03 18:45
Can you put an option where i can download all the Json data all in a single file instead of multiple sindividual files

Cyril(Admin)-2020-08-03 21:43
I'm not sure I understand. To do this, you can wrap your json in an array:
[repeat( 100 , yourjsonhere )]

The result will then be in a single file.

quy-2021-09-05 05:19
thank you... that is what I am looing for...
I think you could mention it in the doc so others can see it.

satya-2020-10-23 00:19
I am trying to generate 10000 files. Single file is not getting downloaded with the .zip link or the downloadlink. Can you pleae check and update me once?

Cyril (Admin)-2020-10-23 13:52
I reproduce! I am trying to correct this next week.

Cyril (admin)-2020-10-23 22:19
Explanations: the zip is not ready, you just have to wait!
I added a message to indicate the number of files that remain to integrate in the archive.

Marcus-2020-11-13 20:21
Is there any way to use the returned str of your functions as a key value?

something like

firstname(): {
"age": 30,
"single": randomBool()

Cyril (Admin)-2020-11-15 11:24
Hi, it is not possible yet. But I'll see to add this feature.

Cyril (Admin)-2020-11-27 21:41
this feature has been added :)
You can read the User guide for implementation.

Ben Finkelstein-2021-02-17 05:04
// expected this to work, but it did not produce expected output
"name": firstname() + " " + lastname(),
"email": city() + "@test.edu",
"year": choice("freshman", "sophomore", "junior", "senior"),

// this does produce expected output, however. But the exec functions don't seem to be documented
"name": exec_firstname() + " " + exec_lastname(),
"email": exec_city() + "@test.edu",
"year": choice("freshman", "sophomore", "junior", "senior"),

Cyril (Admin)-2022-02-15 21:32
Hi, I fixed it! (exec_ functions are used in the background)

priyanshu-2021-04-07 13:08
Hey how can i generate unique values for a field ?

J-2021-10-19 06:12

I would like to be able to use the "index(0)" value in a string.
eg. "name": "JSON File #" + index(0).toSrting();

Thank you.

Cyril (admin)-2022-02-15 21:35
Hi, I fixed it, you can use: "name": "JSON File #" + index(0)