Contact

Tools  /  Generators  /  JSON Array Generator

JSON Array Generator

Generate realistic mock data — define a schema of fields (name, email, uuid, int / float ranges, enums, dates, lorem, nested objects and arrays), set a row count and a seed for reproducible output, and export as a JSON array, NDJSON, CSV, SQL INSERTs or a JavaScript array literal — all in your browser.

What this tool does

It generates arrays of fake records from a schema you describe, and previews them live.

Defining the schema

One field per line: name | type | options. Use a dot path (address.city | city) to build nested objects. Wrap a type in array:<n> options to repeat it.

Field types

Text: string, word, words, sentence, paragraph. Identity: name, firstName, lastName, email, username, phone, company, jobTitle. Numbers: int:1:100, float:0:1:2, bool, id (auto-increment), uuid. Choice: enum:a;b;c, weighted:a=3;b=1. Dates: date, datetime, pastDate, futureDate. Web: url, ip, color, avatar.

Reproducible output

Set a seed and every regeneration produces the same data — useful for fixtures and tests. Clear the seed for fresh random data each time.

Output formats

Pretty or minified JSON array, NDJSON (one object per line), CSV, SQL INSERT statements, or a JavaScript array literal.

Privacy

Everything runs in your browser. Nothing is uploaded.

Frequently asked questions

How do I make nested objects?
Use dot paths in the field name: "user.name | name" and "user.address.city | city" build { user: { name, address: { city } } }.
What does the seed do?
It initialises a deterministic pseudo-random generator (mulberry32). With the same seed, schema and count you always get byte-identical output — ideal for test fixtures. Remove it for non-deterministic data.
Can a field be an array?
Yes — "tags | words | array:3" produces a 3-element array of words. "scores | int:0:100 | array:5" gives five random integers.
How does the SQL output pick the table name and types?
The table name is editable; columns come from the top-level fields (nested objects are stored as JSON strings). Strings and dates are quoted, numbers and booleans are not.
Is anything sent to a server?
No. Generation and export happen entirely in your browser.
Theme Accent