When you build a screen, test an API client or demo a database, you need data that looks real but is not. This mock JSON generator makes it in seconds. List the fields you want, choose how many records, and get a JSON array or a CSV file full of fake names, emails, ids, dates and more. Everything is made in your browser from small built-in word lists, so nothing is fetched and nothing is real.
How the mock JSON generator works
Type one field per line in the box. A line is either just a type, such as email, or a name and a type separated by a colon, such as contact:email. Some types take arguments in brackets. Then set the number of records (1 to 1,000), optionally a seed, pick JSON or CSV and press Generate.
A default set of fields is already filled in so you can see the format straight away: a running id, a name, an email, an age between 18 and 65, a city, a true or false flag and a join date.
Field types you can use
| Type | What it gives | Example |
|---|---|---|
| id | Running number from 1 | 1, 2, 3 |
| uuid | Random version 4 UUID | 9b2f4c1e-… |
| first_name, last_name, name | Names from a small list | Priya Walker |
| First.last plus digits at an example domain | ava.smith42@example.com | |
| username | Lower-case handle | liamkhan381 |
| phone | Fictional US-style number | +1-555-0142 |
| int(min,max) | Whole number in range | int(18,65) |
| float(min,max,decimals) | Decimal in range | float(0,1,3) |
| boolean | true or false | true |
| date(from,to), datetime(from,to) | Date between two years | date(2015,2025) |
| lorem(n), sentence | Filler words or a sentence | lorem(5) |
| city, country | Names from a small list | Riverton |
| url, ip, color | Example URL, documentation IP, hex colour | #a3f09c |
| pick(a|b|c) | One of your own options | pick(open|closed) |
Safe fake data
The generated values are chosen so they cannot point at real people or real systems. Email addresses use example.com, example.net and example.org, which are reserved for documentation and will never belong to anyone. [1] IP addresses come from 192.0.2.0/24, a block set aside for examples. [2] Phone numbers use the 555-0100 to 555-0199 range, which is reserved for fictional use in the North American numbering plan. [3] The cities and names are invented or common words from short lists in the tool, so a record never matches a real customer on purpose, although a common name will occasionally coincide with a real one.
Seeds: repeatable results
Leave the seed box empty and every press of Generate gives different data. Type a seed, which can be a number or any word, and the same seed always gives the same records for the same field list. This is useful when a test must be repeatable, when you want to share an example with a colleague, or when you need to regenerate a file after a small change. Change the seed to get a fresh set. The generator is our own working, a small seeded pseudo-random generator that is fine for test data but must not be used for passwords, tokens or anything secret.
Random UUIDs
The uuid type follows the layout of a version 4 UUID: 122 random bits with the version field set to 4 and the variant bits set to 10. [4] The standard recommends a cryptographically secure source of randomness when unpredictability matters. [4] Because this tool uses a seeded generator for repeatability, its UUIDs are well formed but predictable if someone knows the seed, so use them as test ids only.
JSON or CSV output
JSON output is an array of objects, indented with two spaces, ready to paste into a mock server, a front end or a test fixture. CSV output has a header row made from your field names and one line per record, with quotes added where a value contains a comma, a quote or a line break, and CRLF line endings as the CSV format describes. [5] Use Copy to put the result on the clipboard, or Download to save it as mock-data.json or mock-data.csv.
Tips
- Use field names that match your real API so the mock data drops straight in.
- Use pick(...) for status values, plans, roles and other fixed lists.
- Use the id type for primary keys and uuid for external identifiers.
- Keep the record count small while designing a layout and raise it to test paging and performance.
- Add a seed to your bug report so a colleague gets identical data.
Typical uses
Front-end developers use fake records to build tables, cards and lists before the real API exists. Testers use them to fill a staging database with enough rows to check search, sorting and paging. Teachers and course authors use them as sample data for SQL and spreadsheet exercises, and writers of documentation use them to show realistic request and response bodies without exposing customer information. Because the output is plain JSON or CSV, it also feeds mock servers and import tools directly.
Limits
You can generate up to 1,000 records with up to 40 fields in one go. The tool has no network access: it does not call any API, and the lists of names and words are deliberately short. If you need realistic distributions, such as real addresses or locale-specific names, generate a base set here and refine it in your own code.
What next
Use this often? Add Mock JSON Ge to your Home screen.
Frequently asked questions
What is a mock JSON generator?
It creates fake records in JSON form so you can test a front end, an API client or a database without using real data.
How do I get the same data every time?
Type a seed, a number or any word. The same seed with the same field list always gives the same records.
Are the emails and phone numbers real?
No. Emails use example.com, example.net and example.org, and phone numbers use the fictional 555-0100 to 555-0199 range.
Can I download the data?
Yes. Choose JSON or CSV, press Generate, then use Download or Copy.
How many records can I make?
Up to 1,000 records with up to 40 fields in one go.
Is it safe to use the UUIDs as secrets?
No. They are well formed version 4 UUIDs but come from a seedable generator, so use them only as test ids.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.