CSV Column Sorter
Sort your CSV rows by any column, ascending or descending. Automatically detects numeric vs text values for correct sort order.
📂 Drop a CSV file here or
Input CSV
Sorted Output
About CSV Column Sorter
The CSV Column Sorter reorders all data rows in your CSV by the values in a chosen column. It automatically detects whether the column contains numbers or text and uses the appropriate comparison — numeric sort for number columns, and locale-aware alphabetical sort for text columns.
FAQ
The tool checks if all non-empty values in the sort column are valid numbers. If they are, it sorts numerically (so 10 comes after 9, not between 1 and 2). Otherwise it sorts alphabetically.
No. The header row always stays at the top. Only the data rows are sorted.
Currently the tool supports sorting by a single column. For multi-column sorting, sort by your secondary column first, then sort by the primary column — the stable sort will preserve the secondary order.
No. All sorting happens in your browser using JavaScript. Your data never leaves your device.