UTILS.
Private by default
⇅c

CSV Sorter

Sort CSV rows by a chosen column, with automatic numeric ordering.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
output

About this tool

Sort the rows of a CSV by any column, right in your browser. Quoted fields are handled and numeric columns sort by value.

The column menu lists the header names, or Column 1, 2 and so on when the header box is unticked or a header cell is empty. With the box ticked, the first row stays on top. Sorting is numeric only if every value in the column is non-empty and numeric; one blank cell or word switches the whole column to locale-aware text order, where 10 sorts before 9. A row too short for the column counts as empty there.

Frequently asked questions

Does it sort numbers correctly?
Yes. When every value in the chosen column is a number, the rows are sorted numerically instead of as text.
Are quoted fields preserved?
Yes. The parser respects quotes and escaped quotes, and re-quotes fields that contain the delimiter, quotes, or newlines.
Why did my numbers sort like text?
At least one value in that column is blank or not a number.
Does the header stay on top?
Yes while the first-row header box is ticked; untick it to sort the first row too.

More tools