Remove empty rows from a CSV file

Blank lines and rows that contain only separators or spaces are common at the end of exports and after copy and paste. This tool removes them, keeps every other row in order, and reports how many it deleted.

Empty Rows Remover 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 Empty Rows Remover

  1. Load a CSV file or paste its text.
  2. Press Remove empty rows.
  3. Read the summary: it shows how many empty rows were deleted and how many rows remain.
  4. Download the cleaned CSV.

Example: input and output

This example was produced by the same code the tool runs with default settings. You can download the sample file(s): with-gaps.csv.

Input
name,qty
Pens,10

,
Notebooks,5
   ,   
Staplers,2

Output
name,qty
Pens,10
Notebooks,5
Staplers,2

Result summary: Removed 4 empty rows. 4 rows remain.

Supported formats

CSV, TSV, TXT.

Limitations

  • A row counts as empty only when every cell is blank or spaces. A row with a single value stays.
  • Empty columns are not removed here. Use the Remove Empty Columns tool for that.

When this helps

Prepare a file for import

Some importers stop at the first blank line or report an error for it. Removing blank rows avoids both.

Tidy a pasted table

Copying from a PDF or web page often leaves blank lines between records.

Frequently asked questions

Does a row of only commas count as empty?

Yes. A row such as ",,," has no values, so it is removed.

Will the header row be removed if it is blank?

A blank first row is removed like any other empty row, and the next row becomes the first.

Is the original file changed?

No. You download a new file.

Related tools

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

Category: Data Cleaning