←
Developer

Mock Data Generator

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Fake rows as JSON, CSV, SQL or NDJSON

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Saves as
JSONCSVSQLNDJSON
Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Offline use
Works without a connection once this page has loaded
Built with
Faker
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Limits
Up to 10,000 rows and 60 fields per table.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About Mock Data Generator

This mock data generator builds a table of fake records from fields you define and exports it as JSON, CSV, SQL INSERT statements or NDJSON. Each field has a name, one of 21 types (such as name, email, phone, company, date, birthday, integer, decimal, enum with weights, text pattern, UUID or IPv4) and its own options. Names, addresses and companies come from faker.js word lists in 12 locales, from Chinese and Japanese to Brazilian Portuguese and Arabic. You can generate up to 10,000 rows with up to 60 fields, and the preview updates as you edit.

A seed makes the output repeatable: the same seed and the same field list give exactly the same rows every time. A test fixture can be rebuilt instead of stored. Every column draws its values from the seed and its own field name, so adding, removing or reordering other fields does not change it, and asking for more rows keeps the first rows as they were. Values are safe to share: emails end in example.com, example.net or example.org, links point to example.com subdomains, IP addresses come from the documentation ranges, and US phone numbers use the 555-0100 to 555-0199 block that is reserved for fiction.

Mock Data Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use Mock Data Generator

  1. Start from the Users or Orders template, or click Add field, then give each field a name and pick its type and options.
  2. Drag the ⋮⋮ handle to change the column order. On a keyboard, focus the handle and press the up or down arrow.
  3. Under Options choose the Locale, the number of Rows and, if you need repeatable data, a Seed.
  4. Pick JSON, CSV, SQL or NDJSON. For SQL, set the table name and dialect, and decide whether rows go into one INSERT per row or one per 500 rows.
  5. Check the preview, then click Copy or Download to get all rows. Regenerate picks a new random seed.

Frequently asked questions

Could a generated phone number or email belong to a real person?

The tool avoids that wherever a safe range exists. Emails only use example.com, example.net and example.org, which RFC 2606 reserves for documentation, and URLs only use subdomains of example.com. IPv4 addresses come from 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 (RFC 5737). For en_US, phone numbers combine a real area code with 555-0100 to 555-0199, a block reserved for fictional use. Other countries have no reserved block that faker uses, so their numbers follow real national formats and could be in service. For that reason, the middle four digits are masked by default, for example 138****5250, and switching masking off brings up a warning under the switch. There are no fields for national ID, Social Security, passport or card numbers.

How does the seed work, and when does the output change?

The seed is a whole number from 0 to 4,294,967,295. If you leave it empty, the tool picks a random seed and shows it under the field, so you can keep it with Use this seed. Each column restarts faker's Mersenne Twister generator from the seed plus a hash of the field name. A column therefore changes only when the seed, the locale or its own name, type or options change (for phone fields, also the masking switch). Raising the row count from 100 to 1,000 keeps the first 100 rows. Birthdays also depend on the As of date, so fix it if you need the same output next year. The values may differ after a future faker version update.

Why do some locales show English job titles or Latin text?

Values come from the word lists that faker.js 10.6 ships for each locale. When a locale has no list for something, faker uses English, and the field row says so. Job titles are English for zh_CN, ko, de and id_ID. In ar, company names follow an English pattern (Arabic surname plus and Sons, for example), and phone numbers use the US format. Placeholder text is Latin lorem ipsum except in ja, ko, ru and ar, which have their own word lists. faker has no Hindi data, so Hindi pages start with en_IN (Indian names, cities and states in English). The zh_CN company list contains the forms 无限公司 and 无限责任公司, which Chinese company law does not have, so they are replaced with 有限公司 and 有限责任公司.

What exactly do the SQL, CSV and JSON exports contain?

SQL writes one INSERT per row, or, with the multi-row option, one INSERT for every 500 rows, and can add a CREATE TABLE statement first. Strings are in single quotes with quotes doubled, and MySQL output also doubles backslashes. Column names that are SQL keywords, such as order, group or user, or that contain spaces or other characters, are quoted with backticks in MySQL and double quotes in the other dialects. Booleans are TRUE and FALSE, or 1 and 0 for SQLite, and date-times are UTC in YYYY-MM-DD HH:MM:SS form. CSV follows RFC 4180 with CRLF line ends and an optional UTF-8 byte order mark so Excel shows Chinese and other non-Latin text correctly. JSON is an array with one object per line, and NDJSON has one object per line with no array. Numbers and booleans stay unquoted in both.

How do the pattern and enum fields work?

A pattern is a small subset of regular expressions used to build strings. Character classes like [A-Z] or [^0-9], \d, \w, . (a letter or digit), groups with alternatives like (EU|US), and the counts {3}, {2,5}, ?, * and + are supported. The open-ended *, + and {n,} add at most 8 extra repeats, and a pattern may produce up to 200 characters, so ORD-[A-Z]{2}[0-9]{4} gives values like ORD-QF7237. An enum is a comma-separated list. Add *weight to an item to make it more likely: free*6, pro*3, team gives free 60% of the time. Write \, for a comma inside a value. Fields never depend on each other, so an age field and a birthday field in the same row will not agree.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it