Shuffle CSV Files Online
Randomly shuffle the row order of CSV files directly in your browser. Useful for randomising data before sampling or ML train/test splits.
About this tool
Randomly shuffle the row order of a CSV file in one click. Drop the file, click Shuffle, and download a new file with rows in a random order. Useful before train/test splitting for machine learning, random sampling, or removing any ordering bias in your data. Your data never leaves your device.
Frequently Asked Questions
Does shuffling a CSV file change the data in any way?
No. Only the row order changes. All column values, data types, and column names remain exactly the same. Shuffling is a purely positional operation.
Is the shuffle reproducible?
No — each run produces a different random order. Each shuffle uses a non-deterministic random seed. For a reproducible shuffle, use the SQL Query tool with ORDER BY md5(CAST(rowid AS VARCHAR)) or a similar hash-based ordering.
Why would I shuffle a CSV file?
The most common reason is preparing data for machine learning — shuffling ensures that train and test splits are random rather than ordered by time, ID, or any other latent pattern in the original file.
Is my data private?
Yes — completely. Your file is never uploaded to any server. Everything runs locally in your browser using WebAssembly — processing happens entirely inside your tab. Once you close the tab, nothing is retained.
What is the maximum file size?
The free limit is 50 MB. For larger files, performance depends on your device's available memory — most modern machines handle 500 MB to 1 GB comfortably.
Related Tools
Coalesce Columns in CSV Files Online
Fill null values in CSV files from other columns — return the first non-null value across up to 8 columns in priority order. Add the result as a new column. Runs entirely in your browser.
Add UUID Column to CSV Files Online
Add a UUID column to CSV files directly in your browser. Generate random UUIDv4 or time-ordered UUIDv7 identifiers for every row. Choose the column name and position — no upload required.
Pad Column in CSV Files Online
Left-pad or right-pad a column in CSV files to a fixed width directly in your browser. Zero-pad numeric codes, pad product IDs to a fixed length, or right-pad text fields — no upload required.
Compute Percentiles for CSV Files Online
Compute percentiles, median, MAD, mode, and kurtosis for numeric columns in CSV files directly in your browser. Optionally group by a category column. Results download as CSV — no upload required.
Find Arg Max / Min in CSV Files Online
Find the value of one column at the row where another column is maximum or minimum in CSV files — directly in your browser. Optionally group by a category to get per-group results. No upload required.