Skip to Content
RowSlice

Free CSV Tool

Generate a Large Sample CSV File

Make a realistic test CSV of any size for trying out an import, a spreadsheet or your own code. Pick a dataset and a size, preview the rows, and download it.

  • Up to 20 GB
  • Made on your computer
  • Free, no sign-up

Testing an import means you need a file shaped like the real thing, big enough to hit the limits you care about, and free of anyone’s actual personal data. Real exports are usually none of those. This generator makes one in seconds and writes it straight to your disk, so a 5 GB test file needs no more memory than a small one.

How to Generate a Test CSV File

  1. Choose a dataset: customers, sales orders, employees or a product catalog.
  2. Choose a size, either an exact number of rows or a file size in megabytes. The buttons below the size fill in common test sizes.
  3. Tick Include tricky values if you want to find out whether your importer copes with messy data.
  4. Check the preview, which shows the first rows of the exact file you will get.
  5. Press Generate CSV, then download the file when it is ready.

The Four Datasets

DatasetColumnsGood for testing
CustomersID, first and last name, email, phone, city, country, postal code, signup date, lifetime value, opt-inCRM and mailing-list imports, deduplication, address handling
Sales ordersOrder ID, date, customer ID, store, SKU, product, quantity, unit price, discount, total, status, noteReporting, splitting by store or status, totals and money columns
EmployeesEmployee ID, name, email, department, job title, hire date, salary, manager, office, activeHR and payroll systems, lookups by manager ID, access control tests
Product catalogSKU, product name, category, brand, price, cost, stock, weight, EAN-13 barcode, descriptionShop and inventory imports, barcode handling, long text fields

Some values are chosen to catch a common import mistake on their own. US postal codes such as 02108 and product barcodes starting with 0 lose their leading zeros if anything along the way treats them as numbers — see why Excel removes leading zeros. Every barcode carries a valid EAN-13 check digit, so a validator that rejects them has a bug of its own.

What “Tricky Values” Adds

Clean sample data proves very little, because most CSV bugs only show up on the awkward rows. With the box ticked, a few percent of rows contain:

  • Commas inside a value, such as a store called Main St, Unit 4. The value is wrapped in quotes, and a reader that splits on every comma will shift the rest of that row one column to the right.
  • Double quotes inside a value, like 27" Monitor, written as "27"" Monitor" as the CSV standard requires.
  • Line breaks inside a value, in order notes and product descriptions. A tool that counts lines instead of rows will report the wrong total — the problem explained in how to count the rows in a CSV.
  • Accented and non-Latin text, such as Zoë, Łukasz, São Paulo and 東京, which turn into garbled characters when a program guesses the wrong encoding.
  • Empty values in columns that are usually filled, such as phone number, city or salary.

The preview marks a line break inside a value with , so you can see which rows are the awkward ones before you download.

Choosing a Size

You want to testGenerateWhy
Excel’s row limit1,048,577 rowsOne more data row than a worksheet can hold, counting the header. Excel should warn that the file was not loaded completely.
Google Sheets import10,000,000 ÷ columnsSheets has allowed 10 million cells in a spreadsheet, so an 11-column file hits that limit at about 909,000 rows. Google is doubling it to 20 million from September 2026; test both if your users’ accounts may differ.
An upload or import limitJust over the limitCheck the error message is clear, then just under the limit to confirm it is accepted.
Memory and streaming1–10 GBLarge enough that a program loading the whole file into memory slows down or fails.

Excel’s row limit explained covers what happens to the rows past the limit, and splitting a CSV to fit an import limit lists published limits for common tools.

Repeatable Test Files

Each file comes from a seed, set to 42 under Advanced Options. The same seed with the same dataset, size and options gives a byte-for-byte identical file every time. That lets a bug report say “sample orders, 2 million rows, seed 42” instead of attaching a 150 MB file, and lets two people test against exactly the same data. Change the seed for a different file with the same shape.

Where the File Is Made

The file is generated by code running in your browser tab and written to the browser’s private storage on your own disk, then downloaded from there. Nothing is sent to a server. You need free disk space of roughly the file’s size while it is being made, and the finished file can then be used with the CSV splitter, merge tool or duplicate remover to test those jobs too.

Last updated .

FAQ

Frequently Asked Questions

Is any of the generated data real?

No. Every name, order and salary is made up by the generator. Email addresses use example.com and example.org, domains reserved for documentation and testing by RFC 2606, and phone numbers use 555-0100 to 555-0199, the range set aside for fictional use in North America. Nothing in a generated file can reach a real inbox or phone, so it is safe to load into a test system.

How large a file can I generate?

Up to 100 million rows, or up to 20 GB when you choose by size. The file is written straight to your disk a batch at a time, so memory is not the limit — free disk space is, because the whole file has to be stored before it downloads. Firefox allows a site about 10 GB of storage, so use Chrome or Edge for anything larger.

Why is my file slightly smaller than the size I asked for?

Because it stops before the row that would take it past your size, rather than cutting a row in half. A file you asked to be 100 MB comes out a few hundred bytes under 100 MB, and every row in it is complete. If you need an exact row count instead, choose Number of rows.

Can I generate exactly the same file again later?

Yes. Open Advanced Options and note the seed, 42 unless you changed it. The same seed with the same dataset, size and options produces a byte-for-byte identical file every time, so a failing test can be rerun against the same data, or the file rebuilt on another machine without sending it.

Why do some values have quotes around them?

Those values contain the delimiter, a double quote or a line break, and the CSV standard (RFC 4180) says such a field must be wrapped in double quotes, with any quote inside it doubled. It only happens when you tick Include tricky values, or when a value naturally contains a comma. A correct CSV reader removes the quotes again; if yours shows them, that is exactly the bug the file has found.

Will Excel open a generated file?

Yes, up to 1,048,576 rows, which is the most an Excel worksheet holds. The preset of 1,048,577 rows exists to test precisely that edge: Excel loads the first 1,048,576 lines and warns that the file was not loaded completely. If Excel puts everything in one column, your regional settings expect semicolons — choose Semicolon under Advanced Options.

Guides

More Tools

More CSV Tools