← All Tools

CSV Sort🔒 100% local

Sort CSV data by columns. Privacy-first, no server uploads, no tracking.

Related Tools

API ClientAPI Key RedactorAspect Ratio Scaler

Sorts the data rows of a pasted CSV by one column, taking the instruction from the last line as sort: age, sort: age desc or sort: name ascending. A column is compared numerically when every value in it parses as a number and as text with case-insensitive collation otherwise, quoted fields are decoded before sorting, and the header row is put back at the top of the output. The status line tells you which of the two comparisons was used.

How to use it

  1. Paste the CSV, header row on top.
  2. Add sort: followed by the column name as the last line, plus asc or desc if you want a direction.
  3. Press Process and copy the sorted CSV.

Worked example

name,age John,30 Jane,25 Zoe,41 sort: age descbecomesSorted by: age (desc, numeric) name,age Zoe,41 John,30 Jane,25

All three values parsed as numbers, so the column was sorted numerically and the status line says so.

city,pop Berlin,3.6 Austin,0.9 sort: citybecomesSorted by: city (asc, lexicographic) city,pop Austin,0.9 Berlin,3.6

No direction given, so ascending is assumed, and because the values are words the comparison is lexicographic.

When to use it

What it does not do