CSV Row Sampler (Random, Head, Tail)
Local ProcessingTake N random rows, or the first or last N rows, from a CSV.
How It Works & Processing Standards
Take N random rows, or the first or last N rows, from a CSV.
Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.
Current Limits
- Desktop max file size: 50MB
- Mobile max file size: 20MB
Choose random sample, first N or last N under "Task". Useful for reviewing part of a large file or making a small test file.
What You Can Do
- Random sample
- N rows chosen at random, with no repeats.
- First or last N
- Keeps only the first or last N rows.
How to Use CSV Row Sampler (Random, Head, Tail)
- 1Choose a taskPick how to select rows.
- 2Set the countHow many rows.
- 3Get the resultCopy the CSV or download Excel.
Examples
First 2 rows
Input: 이름,부서,점수
민수,영업,82
지영,개발,95
철수,영업,77
영희,개발,88
2 rows
Result: 이름,부서,점수
민수,영업,82
지영,개발,95
Random sample
Input: A CSV with 1,000 rows, 10 rows
Result: Header + 10 random rows (different every time)
Common Use Cases
- Reviewing part of a large CSV
- Making a small test file
Frequently Asked Questions (FAQ)
Can a random sample repeat a row?
No. Each row can be drawn only once, and the drawn rows come out in random order.
