{"inline_business":{"fake-data-generator":{"id_auto_increment":"ID (Auto-increment)","email":"Email","date":"Date","boolean":"Boolean","format":"Format","united_states":"United States","france":"France","germany":"Germany","spain":"Spain","columns_count":"{{value}} columns","column_name":"Column Name","bytes_value":"{{value}} bytes","export":"Export"}},"docs_business":{"tools":{"fake_data":{"content":{"title":"Generating test data as JSON, CSV or SQL: how it works","intro":"The generator creates 1 to 1,000 fictitious rows from the columns you define (15 types: ID, UUID, name, email, phone, city, date, price and more) and exports them as JSON, CSV or SQL INSERT statements. The selected country (United States, France, Germany, Spain) sets the phone format, the cities and the country name.","details":"

How values are produced

Output formats

JSON: an indented array of objects. CSV: a header line, then one line per record, each value in double quotes and comma-separated. SQL: one INSERT INTO statement per row into the named table; numbers and booleans stay unquoted, text goes in single quotes with doubled apostrophes where needed.

Example

With the 5 default columns (id, first name, last name, email, phone) and 1,000 rows, the CSV has 1,001 lines including the header and the SQL file 1,000 INSERT statements. Any change to the settings reruns the draw.

Limits

"}},"fake-data":{"faqs":[{"question":"How do I generate a CSV file of test data?","answer":"Define your columns and their types, pick up to 1,000 rows and the CSV format, then download mock_data.csv. It holds a header line followed by one line per record, each value in double quotes, which Excel, LibreOffice and most import tools can read."},{"question":"How do I load the generated data into an SQL database?","answer":"Choose the SQL format and the table name: the tool writes one INSERT INTO statement per row, to run once the table exists with the same column names. Booleans come out as true/false; on SQL Server, replace them with 1 and 0."},{"question":"Could the generated email addresses actually exist?","answer":"Yes, by chance: they combine common first and last names with real domains such as gmail.com or orange.fr. Never send messages to them from a test environment, and switch off real email sending before importing the data set."},{"question":"Can I generate more than 1,000 rows?","answer":"Not in one go: the row count ranges from 1 to 1,000 (50 by default). You can run several batches, but the auto-increment ID restarts at 1 each time, so use the UUID type to avoid duplicate keys."}]}}}}