Sort CSV
Sort rows by any column, ascending or descending
CSV Input
Try a sample:
Drop a CSV file here or
Only the first file is used if multiple are dropped.
The request is made directly from your browser. No proxy is used.
Sort Order
Provide CSV input above to sort.
CSV Output
Sorted CSV will appear here...
More Options
CSV Format
Input
Output
How to Use This Tool
This tool sorts the rows of your CSV by one or more columns. Add columns to the sort order, choose ascending or descending for each, and drag to set the priority. It runs directly in your browser, so your data is never uploaded anywhere.
The tool automatically detects number columns and sorts them properly (so 2 comes before 10). Text columns are sorted alphabetically.
- Provide your CSV — Paste CSV text into the input area, drop a CSV file onto the File tab, or enter a URL on the URL tab.
- Build your sort order — Use the dropdown to add columns. Toggle each between ascending and descending. Drag to reorder priority.
- Get your output — Copy the sorted CSV to your clipboard or save it as a .csv file.
FAQ
5 questionsDoes this tool upload my data?
No. It runs entirely in your browser using JavaScript. Your CSV data is never sent to a server.
Can I sort by multiple columns?
Yes. Add as many columns as you need. The first column in the list is the primary sort key. If two rows have the same value in the first column, the second column is used to break the tie, and so on.
How are numbers sorted?
The tool automatically detects columns that contain numbers and sorts them numerically (so 2 comes before 10). Columns with a mix of text and numbers are sorted as text.
How can I change the sort priority?
Drag the sort columns up or down to change their priority. The column at the top of the list is sorted first.
Where do empty values end up?
By default, empty values are placed at the end. You can change this to place them first in the More Options panel.