Sort a CSV by one or more columns, with numbers sorted by value, dates by day and item2 before item10, then download the sorted file.
Initializing in your browser…
Choose which columns of a CSV to keep and in what order, preview the result, and download a smaller file with every value carried over unchanged.
Find out what kind of data each CSV column holds, from numbers and dates to emails, URLs and codes with leading zeros, and get a CREATE TABLE statement for your database.
Rename CSV column headers one by one or all at once, in snake_case, camelCase or another style, with abbreviations expanded and duplicate names caught.
A product list needs ranking by price, highest first. The prices include a grouped thousand, an accounting negative for a refund and an N/A, and the SKU column holds codes like item2 and item10.
Price and SKU columns, in file order
Product SKU Price Laptop item2 999 Mouse item10 29 Keyboard item1 "1,299" Monitor item20 299 Headphones item3 N/A Webcam item100 89 Speaker item21 (199) Microphone item22 129
Sorted by Price, descending (automatic)
Keyboard 1,299 | Laptop 999 | Monitor 299 | Microphone 129 Webcam 89 | Mouse 29 | Speaker (199) | Headphones N/A Sorted as numbers: 7 of 8 values are numbers; those sort by value and the rest sort after them. SKU, ascending (automatic, natural order): item1 item2 item3 item10 item20 item21 item22 item100
The price column is detected as numeric, so "1,299" is read as 1299 and lands first, and (199), the accounting way of writing minus 199, lands below every positive price. N/A cannot be read as a number, so it goes last instead of being treated as zero. Sorting the SKU column the same way picks natural order because every value mixes letters and digits; compared as plain text the same codes would come out item1, item10, item100, item2.
Sort the rows of a CSV file by any column, then break ties with a second or third column. The tool looks at each column and sorts numbers by value, dates by the calendar and codes like item2 and item10 in natural order, so 1,299 comes after 999 and 10 comes after 9. Download the result as a new CSV in the file's own delimiter.
Why plain sorting goes wrong. Every value in a CSV file is text, and sorting text character by character gives answers that look broken: 10 before 9, 1,299 before 200, and 31/12/2023 after 01/05/2024. Spreadsheets hide this by guessing types when they open a file, and they do not always guess right. This sorter decides per column and tells you what it decided, for example "7 of 8 values are numbers; those sort by value and the rest sort after them".
Six ways to compare. Automatic is the default and chooses for you. Number reads values the way a spreadsheet displays them, including thousands separators, currency signs, percentages and accounting negatives such as (199). Date understands ISO dates, date-times with time zone offsets (10:00+02:00 is compared as 08:00 UTC) and day/month/year or month/day/year, and works out which of the last two a column uses from a value that can only be read one way, such as 25/03/2024 (when no value settles it, day first is assumed and stated). Natural treats runs of digits as numbers, so file2 comes before file10 and long order numbers compare digit by digit without rounding. Text compares by Unicode code point, or by the alphabet of a language you pick, and Length sorts by the number of characters.
Several columns. Add tiebreak columns to sort by country, then city, then date. Each rule has its own direction and comparison, and the rules can be reordered. Rows that tie on every rule keep the order they had in the file, so sorting is stable and predictable. Tapping a column heading in the preview is a shortcut for a one-column sort: once for ascending, twice for descending, three times to go back to the original order.
Blanks and unreadable values. Empty cells and values that cannot be read the chosen way, such as N/A in a price column, are kept together at the end, or at the start if you prefer, whichever direction you sort in. This matches NULLS LAST in SQL and stops a handful of blanks from hiding your smallest or largest values.
Checked output. After sorting, the tool walks through the result and confirms every row is in order before you download. The preview shows each row's original position, and the file is written with the delimiter it came in (a semicolon file stays semicolon separated), CRLF line endings and a UTF-8 byte order mark so Excel opens it with accents intact. Everything happens in your browser.
Sort an export by revenue, highest first, to see the top sellers, even when amounts are written as $1,299.00.
Order a log or a booking list by date and time, including timestamps from different time zones.
Sort by department, then surname, then first name, so each department's people appear together in alphabetical order.
Order SKUs, invoice numbers or image names naturally so INV-9 sits before INV-10 instead of after INV-1.
Sorting 999, 29, "1,299", (199) and N/A from highest to lowest gives 1,299, 999, 29, (199), and N/A last, because (199) is read as minus 199 and N/A is not a number.
item1, item2, item3, item10, item20, item100. Sorted as text the same codes come out as item1, item10, item100, item2.
A column holding 05/03/2024 and 25/03/2024 is read as day first, because 25 cannot be a month, so 5 March sorts before 25 March.
Because the values were compared as text, character by character, and "1" comes before "9". Here a column of numbers is detected and sorted by value. If a column is detected the wrong way, set Compare as on that rule.
It looks for a value in the column that can only be read one way, such as 25/03/2024, and uses that order for the whole column. The explanation under the rule names the value it used. If every date could be read either way, the dates are read day first and the explanation says so.
To the end by default, whether you sort ascending or descending, together with any values that cannot be read the chosen way. Under More options you can put them first instead.
Yes. Press Add a tiebreak column for as many levels as you need. The first rule decides the order, and each rule below only breaks ties left by the ones above. Rows that are equal on every rule keep their original order.
Text is compared by Unicode code point by default, where A to Z come before a to z. This gives the same result on every computer. For a dictionary order, choose A language under More options and pick yours; you can also make case and accents count or not.
Yes. The download uses the same delimiter as the file you loaded, quotes fields only where needed, and starts with a UTF-8 byte order mark so Excel displays accented and non-Latin text correctly.
Only your device's memory. Files of a few hundred thousand rows sort in a moment in a desktop browser. The preview shows the first 50 rows and the download contains all of them.
Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.