Sort CSV Columns
Sort the rows of a CSV by a column, keeping every record whole. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Sort the rows of a CSV by a column, keeping every record whole.
Type or paste above to see the result here.
What you paste never leaves this tab
Sort CSV Columns is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, a customer export full of names and emails is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Sort CSV Columns
- 1. Open or paste the CSV. Paste the file, drop it on the page or use Open. Whole records stay together while the rows change order.
- 2. Pick the column to sort by. Tap a chip under Sort by, or tap the column's header in the input table. Nothing is sorted until a column is picked.
- 3. Choose how to compare. Compare as Auto reads numbers as numbers (49 before 199, and $1,200.50 counts), dates as dates, and text in natural order. Choose Text, Numbers or Dates to force one, and tick Descending for highest first.
- 4. Copy or download the sorted file. Empty cells always go last. Copy the result or download it as a CSV in the original delimiter.
When to use Sort CSV Columns
Sort CSV Columns reorders the rows of a file by any column, treating values as text or as numbers. It replaces the open-in-Excel, select-all, data-sort ritual with a paste and two settings, and unlike a naive line sort it never separates a value from the rest of its record.
- Ranking rows by a numeric metric. A load-test export has a latency_ms column and you want the slowest requests first. Sort by that column as Numbers, descending, and the worst offenders float to the top.
- Ordering an export for review. A stakeholder wants the customer list alphabetized by surname before a meeting. Sorting by the name column as Text produces the ordering in seconds, header row still on top.
- Stabilizing files for diffing. Two exports of the same table arrive with rows in arbitrary order, so diff shows everything changed. Sorting both by the id column makes the real differences visible.
Examples
Sort rows by age
Input
name,age Grace,45 Ada,36
Output
name,age Ada,36 Grace,45
Highest revenue first (numbers, not text order)
Input
name,mrr Ada,49 Grace,199 Alan,0
Output
name,mrr Grace,199 Ada,49 Alan,0
About the Sort CSV Columns tool
Sort CSV Columns is a free online tool that works entirely inside your web browser. Sort the rows of a CSV by a column, keeping every record whole. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 133 CSV utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with 4 settings, including Sort by, Compare as, Descending (Z to A, highest first) and First row is header, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.
Frequently asked questions
Does Sort CSV Columns cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.