Sort & Filter Data

Open a CSV, TSV or Excel file, sort it by one or more columns, and keep only the rows that match your filters. Then download the result.

How it works

The file is read in a background worker on this device, so sorting a large table does not freeze the page.

Filters run first and keep the rows that pass all of them, or any of them if you choose. The kept rows are then sorted by the first sort column, then by the next one where the first ties.

Each value is compared by what it is: numbers by size, dates written as YYYY-MM-DD by date, and text A to Z without regard to case, with item 2 before item 10. Blank cells always go last.

How to use it

  1. 1 Choose a CSV, TSV or Excel file, drop it on the box, or paste it. Try sample data loads a small orders table.
  2. 2 Add a sort, pick its column and its order, and add another sort for rows that tie.
  3. 3 Add a filter, pick a column and a condition such as contains or is more than, and type the value.
  4. 4 Check the count of matching rows and the preview, then download the CSV.

Good to know

  • Rows that tie on every sort column keep their order from the file, so sorting by Region keeps each region's rows in date order if the file was in date order.
  • Is more than and is less than compare numbers with numbers and dates with dates. A text cell never passes them, so n/a is not more than 5.
  • Text filters ignore case: contains north matches North and NORTH.
  • Is blank and is not blank need no value. Use them to find, or skip, rows with a gap.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Sorting and filtering a table the way a person expects

Sorting sounds simple until a column holds numbers that a program reads as text. Then 100 comes before 20, because the character 1 comes before 2. Dates written as 05/01/2024 sort by day of the month. Names that start with a lower-case letter go after Z. This tool avoids all of that by reading each cell before comparing it. Two numbers are compared by size. Two dates written as YYYY-MM-DD are compared as dates. Everything else is compared as text, ignoring case, with the numbers inside text read as numbers, so item 2 comes before item 10.

You can sort by more than one column. The first sort decides the order, and the second decides only among rows that tie on the first, such as all the rows from the same region. Add a third for rows that still tie. Rows that tie on every sort column keep the order they had in the file, which is called a stable sort. That matters more than it sounds: if the file was in date order, sorting by region keeps each region's rows in date order. Blank cells always go to the bottom, in both directions, so empty values never crowd the top of a report.

Filters keep the rows you want and drop the rest. Text conditions are contains, does not contain, is, is not, starts with and ends with, and all of them ignore case. Is more than, is at least, is less than and is at most compare numbers with numbers and dates with dates, and a cell that is neither never passes them. That means n/a is never counted as more than 5, a mistake that text comparison makes quietly. Is blank and is not blank find or skip the rows with gaps. With two or more filters, choose whether a row must pass all of them or any of them.

The is condition also reads numbers as numbers, so is 1 matches a cell holding 1.0 or 1. A filter with an empty value is still applied: contains with nothing typed keeps every row. The count above the preview says how many rows match out of how many, and changes a moment after you stop typing, so a large file is not re-filtered on every key.

All of this runs in a background worker on this device, so files up to 200 MB are sorted without being uploaded. Excel files are read from their first sheet. The preview shows the first 100 rows of the result and the download holds every matching row in the new order. The file you opened is never changed, so you can try a different sort or filter as often as you like. To chart the result or check its columns, open the download in CSV Charts or the CSV Analyzer.

Frequently asked questions

Why does 10 sort after 9 here when my spreadsheet put it before?

Because 10 is read as a number. Programs that treat the column as text sort 10 before 9, because the character 1 comes before 9. This tool reads each cell, and numbers sort by size.

Which date formats sort in date order?

Dates written as YYYY-MM-DD, with or without a time. Other formats, such as 05/01/2024, are ambiguous between day first and month first, so they sort as text.

Can I combine filters with AND and OR?

With two or more filters you choose whether a row must pass all of them or any of them. Mixing the two in one query is not supported.

Is my file uploaded?

No. It is read, sorted and filtered in your browser.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.