CSV random sampler
Randomly select CSV records by count or percentage. Use a repeatable seed, keep source order and download the sample and remaining records locally.
Runs in your browser. Files are not uploaded.
UTF-8 only: up to 2 MiB, 10,000 data records and 100 columns. Output up to 8 MiB. The first record must contain unique, non-empty headers.
Paste CSV, choose a UTF-8 file or try the example. Read the table before choosing options.
Output preview
Preview: first 10 records, 8 columns, 400 characters per cell. Downloads include complete values. Spreadsheet protection is applied to downloads, not previews.
Choose the result you need
CSV input must have unique, non-empty headers and equally wide records. Quoted commas and multiline cells are supported. Inputs stay on your device; changes remove stale downloads.
Sampling is without replacement: each source record can appear once. Percentage sizes round up to the next whole record. The same source order, size and seed produce the same selection. Keep source order changes only the presentation order; the remaining-records file always keeps source order. The header is included in both files, including a header-only remainder when all records are selected.
What is preserved?
The seeded generator is intended for repeatable previews, quality checks and test datasets. It is not cryptographic and does not guarantee a statistically representative sample or a fair prize draw. Text, leading zeros and multiline cells are retained. No seed or source text is stored by this tool.