Dataset sampler
Load a CSV, TSV, JSON or JSONL file and take a sample: a random number or percentage of rows with a seed, a stratified sample, the first or last rows, or every k-th row. Files over 50 MB are read as a stream and sampled with reservoir sampling. It runs in your browser.
How to use it
- 01Load a file, or try the sample of support tickets.
- 02Choose random, first, last or every k-th, then enter the number or percentage of rows.
- 03For a random sample, set a seed and optionally a column to stratify by so each class keeps its share.
- 04Download or copy the sample. It is written in the format you loaded.
What it does not do
- Files over 50 MB are sampled line by line as a stream. Only a random sample of N lines is available for them, and JSON arrays are not supported at that size.
- Stream sampling treats each line as one record. A CSV with line breaks inside quoted cells should be converted to JSONL first.
- A stratified sample keeps at least one row of every class, so the total can be slightly above the number you asked for.
Questions
About the dataset sampler.
Is my data uploaded anywhere?
What is reservoir sampling?
Why would I stratify a sample?
What is a sample used for in a data sale?
Is it really free?
More free tools
Personal data scrubber
Strip names, emails, phones, cards, keys and addresses from text and files.
Dataset profiler
Rows, columns, tokens, date span, duplicates and personal-data columns in one report.
Column hasher and remover
Drop sensitive columns or replace them with salted hashes that still join.
CSV, JSON and JSONL converter
Convert between CSV, TSV, JSON and JSONL without breaking quoted cells.
JSONL validator
Find the broken lines in a JSONL file and see which keys are missing.
Duplicate remover
Remove repeated rows, records or log lines, keeping the first of each.
Token counter
Size text the way AI labs do: tokens, words, characters and lines.
Data card generator
Write the one-page description every data buyer asks for.
Data rights pre-check
A tailored checklist of the contracts and questions to clear before a sale.
Slack export parser
Turn a Slack workspace export into clean thread JSONL with pseudonymized users.
Email thread parser
Convert .mbox and .eml files into threaded JSONL without quoted replies.
Ticket export parser
Map help desk exports to customer and agent turns in conversation JSONL.
Chat dataset format converter
Convert and validate OpenAI, ShareGPT, Alpaca and prompt/completion datasets.
Log parser
Turn web server, syslog, logfmt and JSON logs into structured JSONL or CSV.
HTML and document text extractor
Extract clean text from HTML, Markdown, XML and JSON files in batches.
Re-identification risk checker
Measure k-anonymity and l-diversity, then preview fixes that lower the risk.
Secrets scanner
Find API keys, tokens, passwords and private keys in a repo or export before you share it.
Delivery manifest builder
Create a SHA-256 checksum manifest for a dataset delivery, with one hash to compare.
Delivery verifier
Check received files against a manifest: match, changed, missing or extra.
File checksum calculator
SHA-256 of any file, with a compare box that turns green or red.
Train, validation and test splitter
Split a dataset into train, validation and test files without leaking related rows across splits.
Schema inferrer and data dictionary
Infer field types and stats from a file and export JSON Schema, a data dictionary and SQL.
Text chunker
Split documents into overlapping chunks for retrieval or training, with heading context.
Dataset diff
Compare two versions of a dataset: added, removed and changed records, plus schema changes.
Encoding and mojibake fixer
Repair garbled characters, convert files to UTF-8 and strip invisible characters.
Column toolkit
Rename, split, merge, clean, filter and sort columns with a reusable pipeline of steps.
Cleaned it up? Sell it to Outrich.
Outrich Data buys company data directly. Check in five minutes whether yours qualifies, with no call.