CSV Sorter
Reorder the rows of a CSV by one column you choose, entirely in your browser.
Choose the correct sort type for the selected column. Number and date sorting only accepts the documented formats; unsupported and empty values are placed last.
How to use it
- Paste your CSV and choose the delimiter or leave it on auto-detect
- Set whether the first row is a header, then select Read columns
- Choose the sort column, the sort type (text, number or ISO date) and the direction
- Select Sort CSV and copy the reordered result
Paste your CSV, pick the delimiter (comma, semicolon, tab, or auto-detect), say whether the first row is a header, then read the columns and sort. You choose the sort type explicitly — text, number, or ISO date — because guessing is unreliable for IDs, zero-padded values and locale date formats. Text sorting is case-sensitive and deterministic; number sorting accepts standard numeric literals and rejects thousands separators, currency and integers beyond the JavaScript safe range; date sorting accepts only YYYY-MM-DD and ISO 8601 timestamps with a time zone. Empty cells and values that do not match the chosen type are always placed last, ascending or descending, and rows with an equal sort key keep their original order (stable sort). The header row stays in place. Quoted cells, embedded commas and embedded newlines are preserved through the shared RFC 4180 parser and serializer; malformed CSV is rejected rather than repaired. Nothing is uploaded or stored. This version sorts by a single column; it is not a spreadsheet, it does not remove or select columns, and it does not remove duplicate rows.
FAQ
Paste the CSV, select Read columns, then pick the column from the list. Duplicate or blank header names are shown with their column number so you can tell them apart. Then choose a sort type and direction and select Sort CSV.
Empty cells, and cells that do not match the selected sort type, are always moved to the end of the file, whether you sort ascending or descending. Their relative order is kept stable.
Only YYYY-MM-DD and full ISO 8601 timestamps that include a time zone, such as 2025-01-01T12:00:00Z. Locale formats like 31/08/2026 or 08/31/2026 are treated as unsupported and sorted last.
No. The tool parses the CSV with a shared RFC 4180 parser, reorders whole rows, then serialises again. Quoted cells, embedded delimiters and embedded line breaks come through unchanged; only the row order differs.
No. Parsing, sorting and serialising all happen in your browser when you select Sort CSV. The CSV text, the column you pick and the sorted output are never sent to a server or saved in browser storage.