Skip to main content

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.

Processed locally in your browser

How to use it

  1. Paste your CSV and choose the delimiter or leave it on auto-detect
  2. Set whether the first row is a header, then select Read columns
  3. Choose the sort column, the sort type (text, number or ISO date) and the direction
  4. 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

We use cookies to run this site and, with your consent, to understand usage and personalize ads. You can change your choice at any time.