Skip to main content
T

CSV Sort

Sort CSV rows by any column. Three modes: alphabetical, numeric, and natural (so 'a2' comes before 'a10').

Send output to:
Advertisement

How to use CSV Sort

  1. Paste CSV.
  2. Pick sort column, direction, and mode.
  3. Click Sort and copy the output.

What is CSV Sort?

Header row is preserved at the top. Numeric mode parses each cell as a number; non-numeric cells fall through. Natural mode uses locale-aware comparison so '10' sorts after '2', not before.

Advertisement

FAQ

What is natural sort?
It treats numeric runs inside strings as numbers — so 'file2.txt' sorts before 'file10.txt' instead of after.
How do I select the column to sort by?
Choose the column from the dropdown menu and pick a sort mode: alphabetical, numeric, or natural.
Is the original CSV file modified?
No, sorting is non-destructive; a new sorted CSV is generated without altering the original file, all done locally.

Related tools

Advertisement