CSV Random Sampler

Randomly sample rows from a CSV or TSV dataset by count or percentage. Keep the header, repeat the draw with a seed, and copy or download the sample.

Separator

Sample

Create a sample to see the selected rows.

Select a random subset of your data

Paste CSV or TSV from a spreadsheet or open a local file. The sampler recognizes comma, tab, and semicolon separators. If the detected format is ambiguous, choose the Separator yourself. Quoted delimiters and line breaks stay part of their original field. If the first row contains column names, leave First row is a header selected to carry those names into the result.

Choose how many rows to sample

Select Rows for a specific count or Percent to sample a fraction of the available rows. For example, sampling 10% of 25 rows returns 3 rows because fractional counts round up. The sampler draws without replacement, so a row position can be selected only once. If the source contains duplicate values on different rows, both rows can be selected. The sample keeps the order of the selected rows from the source.

Repeat a draw and export the sample

Leave Seed (optional) empty to get a fresh draw each time. To repeat a sample, enter the seed shown with the result and use the same data in the same order, header setting, and sample size. Preview the selection, then copy the sample or download it using the source separator. The data is read and sampled in your browser.

Show more related tools