Remove empty columns from a CSV file

Wide exports often include columns nobody filled in. This tool checks every column and removes those that have no value in any data row. You decide whether a column with a header but no data should stay.

Remove Empty Columns 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 Remove Empty Columns

  1. Load a CSV file.
  2. Tick "First row contains column names" if the first line is a header. The header does not count as data.
  3. Choose whether to keep empty columns that have a name.
  4. Press Remove empty columns and download the result.

Example: input and output

This example was produced by the same code the tool runs, with these settings: keepNamed = false. You can download the sample file(s): wide-export.csv.

Input
id,name,fax,email,notes
1,Ana,,ana@example.com,
2,Raj,,raj@example.com,
3,Mei,,mei@example.com,
Output
id,name,email
1,Ana,ana@example.com
2,Raj,raj@example.com
3,Mei,mei@example.com

Result summary: Removed 2 empty columns. 3 columns remain.

Supported formats

CSV, TSV, TXT.

Limitations

  • A column is empty only if every data cell is blank or spaces.
  • Row order and cell values are untouched.
  • Columns with a single value in any row stay.

When this helps

Slim down a report

A system exports 80 columns but only 30 hold data. Remove the rest before sharing.

Prepare a clean import template

Remove unused columns so the import form shows only fields that matter.

Frequently asked questions

Does the header count as data?

Not when the first-row option is ticked. A column with only a header and no values is treated as empty.

Can I keep named columns?

Yes. Tick "Keep empty columns that have a header name" to preserve them.

Are blank rows also removed?

No. Use the Empty Rows Remover for that.

Related tools

Guides: How to clean a messy CSV file, step by step

Category: Data Cleaning