edit

CSV Sort

Sort the rows of a CSV by one or more columns — ascending or descending, as text or numbers.

Loading…

About CSV Sort

CSV Sort reorders the rows of a CSV by one or more columns, ascending or descending, comparing values either as text or as numbers. Reach for it when a spreadsheet export came out in the wrong order or you need a deterministic sort before diffing or sharing. It runs entirely in your browser, so the file is never uploaded to a server.

Category
edit
Input
Accepts: text/csv or text/plain.
Output
Outputs: text/csv (multiple).
Cost
Free, runs in your browser
Memory
low
Privacy: CSV Sort runs entirely on your device. Files you provide never leave your browser — no uploads, no server, no tracking. The page works offline once loaded.

Common uses

  • Sort a sales export by revenue descending so the biggest accounts sit at the top
  • Order a contact list alphabetically by last name, then first name, using a multi-column sort
  • Numerically sort an ID column that text-sorting would scramble (10 before 2)
  • Normalize row order across two CSV dumps so a line-by-line diff stays meaningful
  • Arrange a date column oldest-to-newest before importing into a reporting tool
  • Sort survey responses by score to find the highest and lowest ratings fast

Frequently asked questions

Does this upload my CSV anywhere?

No. Sorting happens locally in your browser tab, so the data never leaves your device.

Can I sort by more than one column?

Yes. You can specify multiple sort keys, and ties on the first column are broken by the next one in order.

Will numbers sort correctly instead of alphabetically?

Yes. Each column can be sorted as numbers, which puts 2 before 10 rather than the text order of 10 before 2.

Is the header row preserved?

Yes. The header stays on top and only the data rows are reordered.

What input does it accept?

Standard comma-separated text (text/csv or plain text). The output is a CSV file with the same columns in the new row order.

Keywords

  • csv
  • sort
  • order
  • arrange
  • rows
  • columns

Try next