About CSV Sort and Filter
Narrow a large export down to the rows you need and put them in a useful order, without opening a spreadsheet. Write the sort as a list of columns, such as city, total desc, and the conditions one per line, such as total >= 100. The filtered, sorted CSV updates as you type and can be copied or downloaded.
Numbers are compared as numbers, so 9 comes before 10, and text is compared naturally, ignoring case unless you ask otherwise. Empty cells always sort last.
How it works
- The CSV is read according to RFC 4180, so quoted fields with commas and line breaks are understood. The result keeps the input’s delimiter and header.
- Each condition names a column (by header, in double quotes if it contains spaces before an operator, or by position such as #2), an operator and a value. Operators: = != > >= < <= contains, not contains, starts with, ends with, is empty and is not empty.
- When both sides look like numbers they are compared as numbers; otherwise as text. Text that is not a number never passes a numeric comparison, so "n/a" is not greater than 3.
- Rows are filtered first, then sorted. The sort is stable: rows that tie on every sort column keep their original order.
Questions
How do I keep rows that match any condition instead of all of them?
Switch "Rows must match" to "Any condition". The default keeps only rows that meet every condition.
Can I filter by a date?
Yes, when dates are written year first, such as 2026-03-05: those compare correctly as text, so placed_on >= 2026-03-01 works. Dates written day or month first do not sort in date order.
Is there an interactive table I can click to sort?
Not yet. Sorting and filtering are written as short instructions, which also makes them easy to repeat on next month’s export. The CSV can be up to 5 MB.
Does it support regular expressions?
No. Use contains, starts with and ends with for text matches. They ignore case unless "Match case" is on.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.