Mock JSON Data Generator
Generate fake JSON test data from a template: names, emails, addresses, dates, prices and IDs. Repeatable with a seed, up to 10,000 records.
Runs in your browser. Nothing is uploaded.
Placeholders you can use
| Placeholder | Makes |
|---|---|
{{index}} | Record number: 1, 2, 3… |
{{seq:100}} | Counter starting at 100 |
{{uuid}} | Random UUID v4 |
{{int:1-100}} | Whole number in a range |
{{float:0-1:3}} | Decimal in a range, with 3 decimals |
{{price:5-250}} | Amount with 2 decimals |
{{bool}} / {{bool:80}} | true or false (80 = 80% true) |
{{pick:new|paid|shipped}} | One of the listed values |
{{firstName}} {{lastName}} {{fullName}} | Names from many countries |
{{email}} {{username}} | Match the name in the same record |
{{phone}} | International-style phone number |
{{company}} {{jobTitle}} | Invented company names and job titles |
{{street}} {{city}} {{country}} {{countryCode}} {{postcode}} | Address parts (city and country agree) |
{{latitude}} {{longitude}} | Coordinates |
{{date}} / {{date:2025-01-01:2025-12-31}} | Date (YYYY-MM-DD), optional range |
{{datetime}} {{time}} | ISO date-time, or HH:MM |
{{word}} {{words:5}} {{sentence}} {{paragraph}} | Filler text |
{{url}} {{domain}} {{ipv4}} {{color}} {{currency}} | Web and misc values |
["{{repeat:2-4}}", {…}] | Repeat the item 2 to 4 times |
How to use the Mock JSON Data Generator
- Write a JSON template in the left box, or press Load example. Put placeholders such as
{{fullName}}or{{int:1-100}}where generated values should go. - Choose how many records to make (up to 10,000) and the output format, a JSON array or JSON Lines.
- Keep the Seed to get the same data every time, or press New for a fresh set.
- Check the generated data on the right, then copy it or download the file.
- See the list of placeholders below the tool for every value you can generate.
Realistic test data in seconds
Every project needs fake data at some point: a mock API for front-end work while the back end is not ready, records to fill a development database, examples for documentation, or a large file to test how an app copes with load. Writing it by hand is slow, and copying real customer data into tests is a privacy risk.
This generator turns a JSON template into as many records as you need. You describe the shape once, with placeholders where values should vary, and get a JSON array or JSON Lines file back.
A template is just JSON
There is no new language to learn. Write the object you want, and replace values with placeholders:
{ "id": "{{uuid}}", "name": "{{fullName}}", "email": "{{email}}", "total": "{{price:5-250}}" }
Placeholders cover the usual needs: IDs and counters, numbers in a range, prices, true/false with a
chosen probability, one of a list of values, names, emails, usernames, phone numbers, companies, job
titles, addresses, coordinates, dates and times in a range, filler words and sentences, URLs, IP
addresses, colours and currency codes. Nested objects work as you would expect, and
["{{repeat:1-4}}", {...}] creates lists of varying length.
Data that hangs together
Within one record, values agree with each other. The email address is built from the same first and
last name as {{fullName}}, and {{city}}, {{country}} and {{countryCode}} come from the same
place. Names come from many countries, so your interface gets tested with accents, apostrophes and
different lengths.
Repeatable when you need it
The Seed makes generation repeatable: the same template and seed always produce the same output, so tests and screenshots stay stable. Change the seed or press New for fresh data.
Everything runs in your browser. To turn the data into SQL inserts, use JSON Converter; to describe it with a schema, use the Schema tab of the JSON Formatter.
Frequently asked questions
How do placeholders work?
Any string in the template that contains {{name}} is filled in. If the whole string is a single placeholder, the value keeps its type, so "{{int:1-5}}" becomes the number 3, not the text "3". Placeholders inside longer text, like `"Order
How do I make a list with a varying number of items?
Write an array whose first element is "{{repeat:1-4}}" and whose second element is the item template. Each record gets between 1 and 4 items, each generated separately.
Why is the data the same each time?
The generator is seeded, so the same template, count and seed always give the same data. That is useful for tests and screenshots. Press New or change the seed to get different values.
Are the people and companies real?
No. Names are common first and last names from many countries combined at random, companies are invented, and email addresses and websites use reserved example domains that never receive mail.
Is anything sent to a server?
No. All data is generated in your browser.
Tutorials
How to create fake order data for testing
Write a JSON template with nested customers and a varying number of line items, then generate hundreds of realistic test orders with a fixed seed.