Saved

Press the star next to a tool's name to save it.

All my tools

Mock JSON Generator (Fake Data as JSON or CSV)

Use this mock JSON generator to create fake records for testing. List fields such as name, email, uuid, an integer range or a date, choose how many rows, and download JSON or CSV. A seed makes the data repeatable.

Restored your last values ·

Write name:type per line, such as age:int(18,65) or status:pick(open|closed). Types: id, uuid, name, first_name, last_name, email, username, phone, int, float, boolean, date, datetime, lorem, sentence, city, country, url, color, ip, pick.

The data is made in your browser from built-in lists. Nothing is uploaded or fetched.

Result

Press Generate to make your fake records.

Recent results

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

TypeWhat it givesExample
idRunning number from 11, 2, 3
uuidRandom version 4 UUID9b2f4c1e-…
first_name, last_name, nameNames from a small listPriya Walker
emailFirst.last plus digits at an example domainava.smith42@example.com
usernameLower-case handleliamkhan381
phoneFictional US-style number+1-555-0142
int(min,max)Whole number in rangeint(18,65)
float(min,max,decimals)Decimal in rangefloat(0,1,3)
booleantrue or falsetrue
date(from,to), datetime(from,to)Date between two yearsdate(2015,2025)
lorem(n), sentenceFiller words or a sentencelorem(5)
city, countryNames from a small listRiverton
url, ip, colorExample URL, documentation IP, hex colour#a3f09c
pick(a|b|c)One of your own optionspick(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.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Developer Tools