Extract or remove columns from a CSV file

Type the columns you want, by name, by number or as a range like 2-4, and get a new CSV containing only those columns in that order. Switch to Remove mode to drop the listed columns and keep everything else.

Column Extractor tool

Your file stays in this browser tab. It is not uploaded by SheetShift.

CSV file

Drag a file here, or

Options

How to use the Column Extractor

  1. Load a CSV file.
  2. Type the columns to keep, separated by commas. Names are not case sensitive. Numbers start at 1.
  3. The order you type is the order in the result, so this also reorders columns.
  4. Tick Remove mode if you would rather list the columns to delete. Press Extract and download.

Example: input and output

This example was produced by the same code the tool runs, with these settings: columns = email, first_name. You can download the sample file(s): contacts.csv.

Input
id,first_name,last_name,email,phone,internal_notes
1,Ana,Silva,ana@example.com,555-0101,call back
2,Raj,Rao,raj@example.com,555-0102,
Output
email,first_name
ana@example.com,Ana
raj@example.com,Raj

Result summary: Kept 2 columns.

Supported formats

CSV, TSV, TXT. The first row is read as the header for name matching.

Limitations

  • Names must match a header exactly (ignoring case). If a name is missing, the tool shows an error instead of guessing.
  • If two columns share a name, the second one is called name_2.
  • Cells are copied as they are. The tool does not change values.

When this helps

Share less data

Remove internal notes and phone numbers before sending a file to a partner.

Prepare an import

An email tool needs only email and first name. Extract those two columns in that order.

Frequently asked questions

Can I reorder columns?

Yes. In Keep mode the result follows the order you list. For example, "email, id" puts email first.

How do I take columns 2 to 5?

Type 2-5 in the box. You can mix ranges, names and numbers: "1, 3-4, email".

What happens to columns with no header?

Blank headers are named Column 1, Column 2 and so on, based on their position, so you can select them by that name or number.

Related tools

Category: CSV Tools