CSV Column Extractor
Extract columns from a CSV file: pick the columns you need by name or number, in any order, and get a new CSV with only those columns.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the CSV Column Extractor
- 1 Paste the CSV or open the file.
- 2 Click the column names you want to keep, in the order you want them.
- 3 Copy or download the new CSV.
About the CSV Column Extractor
Often you only need a few columns of a big export: the email addresses for a mailing, or the product code and price for a price list. The extractor keeps the columns you pick and drops the rest, in the order you choose, so it also reorders columns.
Click column names to add or remove them, or type them separated by commas. Numbers work too: "3, 1" gives the third column followed by the first. Names are matched exactly first and then without regard to case and surrounding spaces.
Rows that are shorter than the others get an empty value in the missing columns. Values with commas, quotes or line breaks are quoted correctly in the result.
Frequently asked questions
Can I change the order of the columns?
Yes. The result has the columns in the order you pick them, so "email, name" puts the email column first.
What if my file has no header row?
Turn off "First row contains column names" and use column numbers: 1 is the first column.
Can I remove one column instead?
Pick all other columns. Clicking the names makes that quick.
What if a column name is wrong?
You see a message which column was not found. Names are not case-sensitive, so "Email" also finds "email".