LightCube Data Extractor Add to Chrome ↗

Combine multiple CSV files into one spreadsheet

If you exported one CSV per page or per table, put them in one folder and use Excel Data > Get Data > From File > From Folder > Combine, which stacks files with the same columns. In Google Sheets, import each into its own tab and stack them with ={Sheet1!A2:Z; Sheet2!A2:Z}. A three-line script works too.

Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.

Add to Chrome, free ↗

Step by step

  1. Save all CSVs into one folder. Make sure they share the same header row.
  2. Excel: Data > Get Data > From File > From Folder, choose the folder, then Combine and Load.
  3. Check the row count against the totals you expect.
  4. Remove duplicate rows if pages overlapped.

Python version

import pandas as pd, glob
df = pd.concat(pd.read_csv(f) for f in sorted(glob.glob("exports/*.csv")))
df.drop_duplicates().to_csv("combined.csv", index=False)

Command line

On macOS or Linux: head -1 a.csv > all.csv; tail -n +2 -q *.csv >> all.csv keeps one header.

Keep track of the source

Add a column with the page number or URL before combining, so you can trace any row back.

FAQ

What if headers differ?
Rename columns to match first, or Power Query will create separate columns.
Can Google Sheets import a folder?
Not directly; import files one by one or use a script.
Will duplicates appear?
If pages overlap, yes. Remove them after combining.

Related guides

Updated 2026-11-11.

Stop retyping
tables.

Add to Chrome, free ↗

Free, no account. Web exporter Pro is $9 once.