CSV Viewer & Editor · Tutorial

How to filter a CSV file and save only the rows you need

5 min readbeginnerUpdated

You have a CSV export with more rows than you need, such as a year of orders when you only want one region. This tutorial shows how to open it in the CSV Viewer, sort and filter it, check the numbers in the column summary, and download only the matching rows, without installing a spreadsheet program.

What you need

Steps

  1. Open the file

    Drag the CSV onto the drop area, use the file picker or paste the text into the box. The sample is a list of 12 orders with an ID, date, region, product, units, unit price and a paid flag. The table appears straight away with the columns lined up.

  2. Check the separator and header

    The separator is detected for you. If every row appears in a single column, choose the right one in the Separator menu, for example semicolon for many European exports. Keep First row is column names ticked when the file has a header row.

  3. Filter to the rows you want

    Choose region in the In column menu and type North in Filter rows. Only the North orders remain. Choosing a column avoids false matches, such as a product name that happens to contain the word you typed.

  4. Sort the result

    Click the units column name to sort the filtered rows from smallest to largest, and click again for largest first. Numbers are compared as numbers, so 30 sorts after 12.

  5. Read the column summary

    Scroll down to the column summary. units and unit_price are recognised as numbers with their minimum, maximum and average, and paid as true or false. If a column you expected to be numeric shows as text, one of its cells contains something else, such as a currency symbol.

  6. Download the filtered rows

    Press Download CSV to save only the rows that match the filter, in the current order. Choose JSON to get the same rows as an array of objects, or Copy as Markdown to paste a table into an issue or a README.

Try it yourself

Opens the CSV Viewer & Editor with this tutorial's sample loaded.

Try it now

Common mistakes

Forgetting the filter is still on
Downloads include only the visible rows. Clear the filter box before exporting if you want the whole file.
Opening the file in the wrong separator
If the numbers look merged with other text, the separator is wrong. Pick it by hand in the Separator menu.
Editing values you meant only to look at
Cells are editable, so a stray keypress changes the value in the download. Your original file is never touched, so load it again if you are unsure what changed.

Next steps

Go back to the CSV Viewer & Editor, or keep going with one of these:

FAQ

Is the filter case-sensitive?

No. Typing north matches North, NORTH and north.

Can I open an Excel file here?

Convert it first with the Excel Converter (Excel → CSV), then open the CSV.