Sort a List or CSV by Column
Paste a list, or drop a .txt or .csv file, and download it back sorted — pick the column, numeric or alphabetic, ascending or descending. Nothing is sent anywhere.
Sort a List or CSV by Column
Drop your text or CSV file here
Up to 20MB per file. Stays on this device.
Nothing is sent anywhere. Turn off your Wi-Fi and this page still works — try it.
How it works
- Drop or choose a .txt or .csv file, or paste a list directly into the text box.
- For a CSV, pick which column to sort by — the preview and download update immediately. Turn on “first row is a header” to keep the header row pinned at the top.
- Choose ascending or descending, and numbers or text if auto-detection picked the wrong one, then download the sorted result.
Frequently asked questions
Is my list or file sent anywhere?
No. Pasted text and uploaded files are both read entirely on your device — nothing is sent to a server. Turn off your Wi-Fi after the page loads and it still works.
How does it decide whether to sort numerically or alphabetically?
Auto-detect looks at every value in the column you chose: if all of them are plain numbers, it sorts numerically (so 9 comes before 10); otherwise it sorts alphabetically. If a column mixes numbers with text (or auto-detect gets a column like ZIP codes wrong), switch “Sort as” to Numbers or Text yourself.
Does this work on a plain list, not just a CSV?
Yes — a plain text list with no commas is treated as a single-column file, so the same sort (alphabetical or numeric, ascending or descending) applies to the whole line.
What happens to a header row?
Turn on “first row is a header” and it stays pinned at the top of the result, excluded from both the sort and from numeric auto-detection. This only appears for files with more than one column.
How are ties and blank or non-numeric values handled?
Rows with equal sort values keep their original relative order (a stable sort). Under a numeric sort, a blank or non-numeric cell is always pushed to the end of the result, in either direction, rather than being treated as the highest or lowest value.
Does this handle commas inside a quoted CSV field?
Yes, a field like "Smith, John" is treated as one column, not split on the comma inside the quotes. The one case this doesn’t handle is a quoted field containing a line break — that row is read as more than one line, the same way a plain text editor would show it.
Files are processed locally in your browser and never uploaded. Read more on the privacy page.