About this tool
Front-end prototypes, API mocks, demos and load tests need realistic JSON, not "foo" and "bar". Describe the shape once as a template and this random JSON generator fills it with plausible names, emails, numbers, dates and more, for as many records as you need. Start from a preset (users, products, orders, blog posts or log events) or write your own.
The template is your input, so it isn’t saved; your other settings are. Everything is generated in your browser.
Placeholders
Put placeholders inside string values. When a value is exactly one placeholder, such as "{{int:1:100}}", the result keeps its type (a number, not a string). Otherwise the placeholders are replaced inside the text: "SKU-{{int:1000:9999}}".
| Placeholder | Produces |
|---|---|
{{name}} | Full name; {{firstName}} and {{lastName}} for parts (one person per record) |
{{email}} | Email at an example domain, matching the record’s name |
{{username}} | Username such as brave_otter42 |
{{phone}} | US phone number in the reserved 555-01xx range |
{{street}} {{city}} {{postcode}} {{country}} | Address parts (one address per record) |
{{company}} {{jobTitle}} | Company name and job title |
{{uuid}} | Random UUID v4 |
{{index}} | Record number: 1, 2, 3… |
{{int:1:100}} | Whole number between 1 and 100 |
{{float:0:50:2}} | Decimal between 0 and 50 with 2 decimal places |
{{bool}} | true or false |
{{pick:red|green|blue}} | One of the listed values |
{{date:2024-01-01:2026-12-31}} | Date (YYYY-MM-DD) in a range; {{datetime:…}} for an ISO timestamp |
{{word}} {{sentence}} | A word or a short sentence of filler text |
{{color}} {{ipv4}} | HEX colour; IPv4 address from a documentation range |
["{{repeat:1:3}}", item] | An array with the item repeated 1 to 3 times |
Each record gets one consistent person and address, so {{name}} and {{email}} match (Ada Lovelace, ada.lovelace@example.org).
Example
{
"id": "{{uuid}}",
"customer": "{{name}}",
"total": "{{float:5:500:2}}",
"status": "{{pick:paid|pending|refunded}}",
"items": ["{{repeat:1:3}}", { "sku": "SKU-{{int:1000:9999}}", "qty": "{{int:1:4}}" }]
}
Using the data
- Download the result as
mock-data.jsonand serve it with a mock API such as json-server, or import it into your database. - Choose JSON Lines (one record per line) for log pipelines, BigQuery and Elasticsearch bulk imports.
- Need a table instead? Paste the JSON into the JSON to CSV converter.
FAQ
How do I generate random JSON data?
Pick a preset or write a template with placeholders such as {{name}} and {{int:1:100}}, choose how many records you need, and copy or download the result.
Can I generate nested objects and arrays?
Yes. Templates can nest objects and arrays to any depth, and ["{{repeat:1:3}}", item] creates arrays of random length.
How many records can I generate?
Up to 1000 per click. For larger data sets, download several batches or generate them in code with a library like Faker.
Does it keep number and boolean types?
Yes. A value that is exactly one placeholder, like "{{int:1:9}}" or "{{bool}}", becomes a real number or boolean in the output.