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 in place. 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 into the input, or load the example first, and check whether your data is comma, semicolon or tab separated.
- Name the column to sort by: type its header name, or its 1-based position if the header is missing or ambiguous.
- Turn on Numeric sort and Descending if you need them, then copy the sorted CSV - the header row is still the first line.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How do I use CSV Sorter?
- Three steps: paste your CSV data or load the example, enter the column to sort by using its header name or 1-based position, then switch on Numeric sort or Descending if needed and copy the sorted CSV.
- Which inputs and options does CSV Sorter support?
- The input is comma, semicolon or tab separated CSV text, and quoted fields are parsed correctly. There are three options: the sort column (header name or 1-based number), Numeric sort, and Descending. Only the data rows are reordered; the header row is kept out of the sort.
- How do I view or copy the result?
- The sorted CSV appears in the output area with the header still on the first line, so you can check the order before copying the whole thing back into your spreadsheet or file.
- Is my input, file, or result uploaded?
- No. Parsing and sorting happen in your browser, and your inputs, files, settings and results stay there. Nothing is uploaded to LocalTools.
- What does this tool not support?
- It sorts by one column at a time. There are no accounts, no cloud history or sync, no server-side processing, and no multi-column sorting, filtering, batch runs or export formats beyond what this page describes.