CSV Tools

Sample Rows

Pick a random sample of rows from your CSV

CSV Input

Try a sample:

Options

CSV Output

Sampled rows will appear here...

More Options

CSV Format

Input

Output

How to Use This Tool

This tool picks a random sample of rows from your CSV. Choose how many rows to sample by count or by percentage. It runs directly in your browser, so your data is never uploaded anywhere.

If your file has a header row, it stays at the top of the output automatically. Use the seed option for repeatable results, or the replacement option if you need the same row to appear more than once.

  1. Provide your CSV — Paste CSV text into the input area, drop a CSV file onto the File tab, or enter a URL on the URL tab.
  2. Choose your sample size — Switch between Count and Percentage mode using the tabs. Set the number of rows or the percentage you want to sample. The tool shows the total rows in your file to help you decide.
  3. Get your output — Copy the sampled CSV to your clipboard or save it as a .csv file.

FAQ

4 questions
Does this tool upload my data?
No. It runs entirely in your browser using JavaScript. Your CSV data is never sent to a server.
What is the difference between Count and Percentage mode?
Count mode lets you choose an exact number of rows to sample (e.g., 10 rows). Percentage mode lets you choose a proportion of the total (e.g., 50% of your rows). Both produce a random sample.
What does the seed option do?
When you enter a seed value, the sample becomes repeatable — the same seed with the same input always picks the same rows. Leave it empty for a different random sample each time.
What does 'with replacement' mean?
By default, each row can only appear once in the sample. With replacement turned on, the same row can be picked more than once, and the sample count is no longer limited by the number of rows in your file.

More Row Operations Tools

9 tools

More CSV Tools

89 tools