Category: Developer tools
CSV Sorter
Sort CSV rows by a column, keeping the header in place
Sort CSV rows by a header name or 1-based column number, as text or numbers, ascending or descending, with the header row kept out of the sort. Quoted fields are parsed correctly. Runs entirely in your browser.
name,role,team,age "Doe, John",Tester,Green,29 Ada Lovelace,Engineer,Blue,36 Alan Turing,Mathematician,Blue,41 Grace Hopper,Admiral,Green,85
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
Spreadsheet exports rarely arrive in the order you need them, and reopening a large CSV in a spreadsheet app just to sort one column is slow. This tool parses comma, semicolon or tab separated CSV with full support for quoted fields, sorts the data rows by one column, either as text or as numbers, and rebuilds the CSV with the header row left exactly where it was.
How to use it
- Paste your CSV data, or load the example.
- Enter the column to sort by, using its header name or 1-based position.
- Turn on Numeric sort and Descending as needed, then copy the sorted CSV.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Is my CSV data uploaded anywhere?
- No. Parsing and sorting happen in JavaScript running in the page, so spreadsheet exports never leave your device.
- Does the header row get sorted with the data?
- No, the first row is always kept as the header and never moves, as long as First row is a header stays on.
- What happens with a plain text sort on numbers?
- Turn on Numeric sort so "10" sorts after "9" instead of before it, which is what a plain text comparison would otherwise do.