CSV Random Sample
Pick a random sample of rows from a CSV, without repeats, using your browser's secure random generator. Keep the header and original order. Free and private.
Runs in your browser. Nothing is uploaded.
About CSV Random Sample
CSV Random Sample draws the number of rows you ask for, at random and without replacement, and outputs them with the header. Every row has an equal chance, because the shuffle uses the browser's cryptographic random number generator rather than Math.random.
Use it to spot-check a big export, build a test set, run a fair giveaway draw from an entry sheet, or pick survey respondents to follow up. Each change to the input draws a fresh sample.
How to use CSV Random Sample
- Type or paste your text into the input box. Press Sample to see an example.
- Adjust the options. The result updates as you type.
- Copy the result, or press Use as input to chain another transformation.
Frequently asked questions
Can the same row be picked twice?
No. Sampling is without replacement.
Is it truly random?
It uses crypto.getRandomValues with an unbiased Fisher-Yates shuffle, the same source used for encryption keys.
Is CSV Random Sample free and private?
Yes. CSV Random Sample is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.