Remove Columns from CSV

Withdata DataFileConverter removes the columns you do not need — by name — and writes a clean CSV with the rest. Local, fast, GUI and command line, Windows, macOS and Linux.

Download DataFileConverter

Key Features

Remove Columns or Keep Columns?

Both do the same thing from opposite directions — use whichever is shorter for your file:

You want to…Use
Delete a few columns out of many Remove columns (this page) — list the columns to drop
Keep only a few columns out of many Select / extract CSV columns — list the columns to keep

How to Remove Columns from a CSV (GUI Steps)

  1. Launch DataFileConverter, start a new task and set source/target type to CSV 📷
  2. Load the CSV file (or a folder to batch-process) 📷
  3. In the column mapping, leave out the columns you want to remove (the ones you keep stay mapped) 📷
  4. Set the output CSV and run it, then preview the result 📷

Example: drop country and joined

Input  customers.csv:  id,name,email,country,joined
Output customers.csv:  id,name,email

Command Line Automation

You can remove columns from CSV files from the command line, for batch or scheduled jobs:

Frequently Asked Questions

Q: How do I remove a column from a CSV file?

A: Open the CSV in DataFileConverter, then leave the columns you want to delete out of the mapping. The output CSV keeps only the remaining columns, in their original order.

Q: Can I remove several columns at once?

A: Yes. Drop as many columns as you need in one run, and reuse the same session to remove the same columns from many CSV files in a folder.

Q: Can I remove a column by its number or only by name?

A: The columns are listed from the CSV header row, so you remove them by name. If your file has no header, DataFileConverter can treat the first row as data and use column positions instead.

Q: Is my data secure when removing CSV columns?

A: Yes. All operations run locally on your computer. No files are uploaded to any server.

Q: Does it work on Linux and macOS?

A: Yes. Native versions are available for Windows, macOS and Linux, with GUI and command line.

Related Tools

Remove the Columns You Do Not Need

Download the free trial and clean up your CSV files on Windows, Mac, or Linux.

Free Download Now