Skip to content

Free · Browser-local tools

Generate a CSV file

Generate repeatable fictional CSV data with typed fields, ranges, dates and choices. Preview, edit, copy and download in your browser.

Generate CSV

Create your test file

Choose your columns and record count. Your fictional data opens in the editor, ready to inspect and download.

Column names

One name per column. Commas are part of the name.

  1. Choose column names and a record count.
  2. Choose field types, ranges, choices and a repeatable seed in the editor.
  3. Preview, copy, download or apply the fictional data with undo.

Free · No signup · File contents stay in your browser. Open files up to 1 GiB with browser storage.

Try a small example

3 records · 3 columns
Illustrative CSV sample data
idnameamount
1Example one12
2Example two24
3Example three18

Choose the columns and count to begin. In the editor, select field types, ranges, choice lists and a repeatable seed.

Illustrative fictional data. Open the sample to try the tool.

How to generate csv

  1. 1

    Choose column names and a record count.

  2. 2

    Choose field types, ranges, choices and a repeatable seed in the editor.

  3. 3

    Preview, copy, download or apply the fictional data with undo.

What to expect

Generate sample text, names, reserved test emails, IDs, numbers, dates, booleans and choice values. Explicit bounds and seed make examples repeatable; no real personal data or AI is used.

Local files and clear limits

These tools process file contents on your device. The browser workspace accepts files up to 1 GiB and 5 million records, subject to available browser storage and decoded-record limits. This tool's calculations support up to 100,000 records, 2 million cells and 64 MB of text. Download a new copy to keep your result.

Plain answers

Generate CSV questions

What can I do with this generate csv tool?

Generate sample text, names, reserved test emails, IDs, numbers, dates, booleans and choice values. Explicit bounds and seed make examples repeatable; no real personal data or AI is used.

Does my CSV leave my device?

File selection, editing and these task operations run in your browser. Optional recipe assistance, when available, sends your goal and only the column metadata or sample values you explicitly include to its configured provider. Your file is not attached automatically; see Privacy for processing details. Manual editing requires no account or file upload. Download a new copy to keep your result; refreshing restores the original input, not unsaved edits.

Do the editor and task have the same file limits?

The editor opens files up to 1 GiB and 5 million records, subject to browser storage and decoded-record limits. This task supports up to 100,000 records, 2 million cells and 64 MB of decoded text.

Other ways to work with your CSV

Use these local examples when you prefer a script or SQL. They create separate results and explain where their behavior differs from this browser tool.

Generate repeatable fictional CSV data with Python

Creates ten fictional records with a fixed random seed, three-character IDs and no real personal data.

Before you start

  • Python 3.10 or later. Run in a working folder with a backup of your source; output files may be replaced unless opened in exclusive mode.
Run the complete Python example
python3 - <<'PY'
import csv
import random

rng = random.Random(42)
with open("output.csv", "w", encoding="utf-8", newline="") as target:
    writer = csv.writer(target)
    writer.writerow(["id", "label", "amount", "status", "note"])
    for number in range(1, 11):
        writer.writerow([f"{number:03}", f"Sample {number}", rng.randint(1, 100), "active", "Fictional"])
print("Wrote ten fictional records to output.csv")
PY

Limits and output

  • CSV has no stored type schema. Python keeps fields as strings until an example explicitly converts a value. These recipes do not add spreadsheet formula protection; import sensitive-looking strings as text in spreadsheets.
  • This example has a fixed schema and distribution. Change the fields and ranges for your test rather than treating them as realistic production data.

Documentation: Python CSV reader and writer

Use DuckDB for CSV generate

Run SQL locally with the DuckDB command line. Read fields as text, then cast only the columns used in calculations.

Before you start

  • Install the DuckDB command-line client using its official installation guide.
  • Run beside input.csv. Named-column examples expect id,label,amount,status,note.
Run DuckDB SQL
duckdb <<'SQL'
COPY (SELECT lpad(CAST(number AS VARCHAR), 3, '0') AS id, 'Sample ' || number AS label FROM range(1, 11) AS t(number)) TO 'duckdb-output.csv' (HEADER, DELIMITER ',');
SQL

Limits and output

  • Adapt column names and casts to your input. DECIMAL(18,4) rounds to four fractional digits; values outside its range become NULL with TRY_CAST. SQL output order is not promised without ORDER BY; equal sort keys need an explicit tie-breaker for a deterministic order.
  • These recipes write ordinary CSV without spreadsheet formula protection.

Documentation: DuckDB CSV options and installation; DuckDB COPY export

Use ClickHouse Local for CSV generate

Use the ClickHouse binary in local mode; no database server or upload is needed for these local file paths.

Before you start

  • Install ClickHouse using its official instructions so clickhouse is on PATH.
  • This explicit example schema is id,label,amount,status,note. Change every column name/type to match your header before running. Use a fresh folder or remove only a previous example output before repeating it.
Run ClickHouse Local SQL
clickhouse local --multiquery <<'SQL'
SELECT leftPad(toString(number + 1), 3, '0') AS id, concat('Sample ', toString(number + 1)) AS label FROM numbers(10) INTO OUTFILE 'clickhouse-output.csv' FORMAT CSVWithNames;
SQL

Limits and output

  • The example loads a Memory table, so it must fit in available memory. All source fields are explicitly String to retain identifiers; numeric casts use fixed scale 4. CSVWithNames writes a header and ClickHouse quoting. Sorting equal keys and un-ordered queries do not guarantee original row order.
  • Output is ordinary CSV without spreadsheet formula protection. A remote ClickHouse server reads its own filesystem; these commands intentionally use local mode.

Documentation: ClickHouse Local and installation; ClickHouse CSV formats