CSV Sorter
Sort CSV rows by one or two columns as text, numbers or dates, ascending or descending.
Or paste your data
Sort CSV files correctly
Sort a customer list by city and name, a sales report by date or a product list by price. Rows that tie on the first column can be sorted by a second.
Smart sorting
- Automatic mode detects numbers and dates in each column
- Natural sorting: 'Product 2' comes before 'Product 10'
- Empty cells always go last
- Equal rows keep their original order (stable sort)
Your file stays safe
Sorting happens in your browser; your original file isn't changed and you download a sorted copy. Data is never sent to a server.
How to use CSV Sorter
- Upload your CSV file.
- Choose the sort column and optionally a second one.
- Set the data type and direction.
- Download the sorted CSV.
Why use this tool?
Gives correct results without the date and number format problems of spreadsheet sorting.
FAQ
Does sorting change my file?
No. The original file stays as it is; you download a sorted copy.
Are accented letters sorted correctly?
Text sorting is language-aware, so accented letters land in the right places.
Is the header row sorted too?
No, the first row is kept in place as the header.
Related tools
CSV Viewer
Open CSV and TSV files as a searchable, sortable table without Excel; large files stay smooth.
Open toolCSV Deduplicator
Remove duplicate rows from a CSV by comparing whole rows or only the columns you choose.
Open toolCSV Column Extractor
Keep only the CSV columns you need and download a smaller file.
Open toolSort Lines
Sort lines alphabetically (A–Z, Z–A), by length, or reverse the list.
Open tool