Sort CSV by any column — without uploading your file.
Sort by one or more columns, text or numeric, ascending or descending. Handles millions of rows, date-aware, locale-correct.
Drop your CSV or Excel file here
File never leaves your device
Everything the Sort CSV tool does
Multi-column sort
Add sort keys in priority order — sort by revenue descending, then by name ascending, then by date. Each additional key breaks ties in the previous one.
Text, number, or date
Pick how to compare each column. "01234" and "234" sort correctly as numbers; ISO-style dates sort chronologically.
Ascending or descending per key
Every sort key has its own direction. Common pattern: country asc, revenue desc.
Stable sort
Rows with equal sort-key values keep their original order — important for preserving upstream ordering.
Handles huge files
Native browser sort is heavily optimized. Even 2M rows sort in seconds on modern hardware.
Works with Excel and JSON paths
Drop XLSX, sort, download as CSV. Or use the JSON converter tool first and sort the result.
Can I sort by multiple columns?
Yes. Add sort keys in priority order — the first key is primary, the second breaks ties, the third breaks further ties. Example: sort by country ascending, then revenue descending — alphabetical by country, but within each country, highest revenue first.
What's the difference between text and number sort?
Text sort is alphabetical — "10" comes before "2" because "1" sorts before "2". Number sort compares numerically — 2 comes before 10. Pick number sort for any column that's actually numeric.
How are dates sorted?
If your dates are in ISO format (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS) they sort chronologically as strings. Other formats may not sort as you expect — convert to ISO first with Find & Replace, or add a date-sort mode in an upcoming release.
What about leading zeros and mixed numeric/text?
In text sort, "01" sorts differently from "1". In number sort, they're equal (both become 1). Choose based on whether leading zeros are meaningful — ZIP codes should sort as text to keep "01234" together; quantities should sort as numbers.
Is the sort stable?
Yes. Rows with equal sort-key values retain their original input order. This matters when you want to preserve upstream ordering for ties.
Can I sort descending?
Each sort key has its own direction — ascending or descending. You can mix them: sort by date ascending, revenue descending, in the same operation.
Does sort work with XLSX files?
Yes. Drop an XLSX and sort exactly like CSV. Output back to XLSX or convert to CSV/TSV.
How large a file can I sort?
Browser sort is heavily optimized. 2 million rows sort in a few seconds on modern hardware. For 10M+ rows, you'll want a database — but sort will still work, just slowly.
Does sort preserve data types?
Yes. Cells keep their original types. Sort only changes row order — never cell values.
Can I save my sort keys?
"💾 Save settings" stores your output format. Sort keys depend on column names and aren't saved per session since the next file might have different columns.
Can I preview the sorted output before downloading?
Yes. As you pick a column, type (text/number/date), and direction, the preview table updates live — showing the first 10 rows as they'd appear in the sorted file. This lets you catch issues (e.g. dates treated as text, numbers with currency symbols) before downloading. The full file is sorted across all rows on download.
How do I sort by multiple columns — like first by country, then by revenue?
Add a second sort key. Click + Add sort key and pick a second column. Keys are applied in order from top to bottom — so the example would be: Key 1 = country (Text, Ascending), Key 2 = revenue (Number, Descending). Rows are grouped by country, then highest-revenue rows appear first within each country. You can drag-reorder by removing and re-adding keys.
Split CSV
Break large files by size, rows, parts, or column.
Merge CSV
Combine multiple files into one, matching headers by name.
Remove Duplicates
Remove duplicates by any columns, keep first or last occurrence.
Filter Rows
Keep or remove rows matching text, number, or regex.
CSV ↔ JSON
Convert either direction, array of objects or NDJSON.
Find & Replace
Bulk edit values across one column or all.
Sort CSV
Sort by one or more columns, text or numeric.
Validate CSV
Check before import, one-click fixes.