1. Home
  2. Spreadsheet & data tools
  3. Sample CSV Rows

Sample CSV Rows

Audit 50 random invoices, test an import with a small subset, draw survey participants fairly or pick contest winners from a list: take a sample you can reproduce later.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Sample CSV Rows

  1. Drop the CSV or Excel file.
  2. Choose the sample size and method.
  3. Download the sample (and, if you like, the rows not picked).

Features

  • Simple random sample without repeats
  • Reproducible with a seed number
  • Stratified by a column, in proportion to each group
  • Every n-th row, first rows or last rows
  • Remaining rows downloadable separately

Supported formats

You can open

  • CSV
  • TSV
  • TXT
  • XLSX
  • Pasted data

You get

  • CSV
  • XLSX
  • TSV
  • ZIP

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Sample CSV Rows is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Very large files are limited by your device’s memory; on a phone, split huge files into smaller parts first.

Guide

Drawing a random sample of rows from a CSV or Excel file

Looking at every row is often impossible or unnecessary. An auditor checks 50 invoices out of 8,000, a developer tests an import with 1,000 rows before loading a million, a researcher contacts a random subset of respondents, a teacher picks a few homework submissions to review in class. This tool takes a sample from a CSV or Excel file and lets you repeat exactly the same draw later.

Simple random sample

“Random” picks the chosen number of rows, each row equally likely, and never the same row twice. Enter the size as a number of rows or as a percentage of the file, such as 5 percent. The picked rows are kept in their original order, which makes them easy to find in the source file.

Reproducible with a seed

Random choices come from a generator started by the seed number. The same file, the same size and the same seed always give the same sample. Write the seed down in your audit notes, and anyone can reproduce your draw with this tool. Click the shuffle button to start from a new, random seed when you want a fresh sample.

Random per group

“Random per group” keeps the proportions of a column. If 80 percent of your rows are from Europe and 20 percent from Asia, a sample of 10 takes 8 European and 2 Asian rows. When proportions do not divide evenly, the groups with the largest remainders get the extra rows. Use it so that small groups are represented fairly instead of being missed by chance.

Every n-th row

Systematic sampling takes row 1, then every n-th row after it. It is simple to explain and spreads the sample evenly through a file, which suits time-ordered logs. It is not random: if the data has a repeating pattern, such as a weekly cycle and every seventh row, the sample can be biased.

First and last rows

First rows and last rows are not samples in the statistical sense, but they are handy for quick tests, such as importing the first 100 rows to check a template, or reviewing the most recent entries in a log.

The rows that were not picked

Switch on the option to show and download the remaining rows instead of the sample. Together, sample and remainder split the file into two parts, for example a training set and a test set, or a group to contact now and one to contact later.

Counts at a glance

The summary shows the rows in the file, the rows picked and their share. For group samples, the number picked per group is listed below.

How big should a sample be?

For estimating a share, such as the error rate of invoices, a few hundred random rows give a margin of error of about five percentage points regardless of how large the file is. Audit standards and research designs often prescribe sizes; follow them where they apply.

To split a file into many parts rather than draw a sample, use Split CSV File. To pick names from a short list on screen, try the Random Name Picker. For realistic test data without real records, see the Mock Data Generator.

Checked against the current version of the Sample CSV Rows on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Is this random enough for a prize draw?

It is statistically sound for audits and research samples. For prize draws with legal requirements, document the seed and the file before drawing so anyone can repeat the draw, or follow the rules your jurisdiction sets for public lotteries.

Why are the picked rows in their original order?

Keeping the original order makes the sample easier to check against the source file. If you need a shuffled order, sort the downloaded sample by a random column in your spreadsheet.

Why use a seed?

The same file, size and seed always give exactly the same sample, so an auditor or colleague can repeat your draw and check it.

What does stratified mean?

The sample keeps the proportions of a column: if 80% of the rows are from Europe and 20% from Asia, a sample of 10 takes 8 and 2.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.