Combine multiple CSV files into one

Twelve monthly exports, one file per store, one extract per region: data often arrives in pieces that only make sense together. Copy-pasting them into one sheet works for three small files and fails for thirty large ones. Here are the ways to stack files into a single table, how to handle columns that differ, and how to do it on millions of rows.

Updated

Combine or join? Two different operations

Combining (also called appending or a union) stacks files on top of each other: January’s rows, then February’s, then March’s, with the same columns. The result has more rows.

Joining puts tables side by side: orders on one side, customer details on the other, matched on a customer code. The result has more columns. This guide is about combining; joining has its own guide.

The usual ways, and where they break

  • Copy and paste into one sheet. Fine for a handful of small files. Easy to paste a header twice, miss a file, or misalign a column, and stuck at 1,048,576 rows.
  • The command prompt (copy *.csv all.csv on Windows). Fast, but it concatenates text blindly: headers repeat in the middle, and files with different columns are mixed up.
  • Power Query, Get Data › From Folder. The right Excel tool: it appends every file in a folder and refreshes when files are added. You learn its editor, and loading into a sheet is still capped at a million rows.
  • A Python script with pandas. Flexible and repeatable, if you write code.

Combine files in Big Sheets

Big Sheets is a spreadsheet that opens several million rows in your browser. It reads CSV, TSV, Excel, JSON, XML and Parquet, and can stack several files or tabs into one sheet at import.

  1. Drop all the files on the page at once, or drop the folder that contains them.
  2. Each file appears as a tile with its name and row count. Untick the ones you do not want.
  3. Choose Combine them into one sheet.
  4. Choose how to handle columns: only the columns all files have, or all columns, left empty where a file lacks one.
  5. Tick Add a “Source file” column to know which file each row came from.
  6. Name the sheet and combine. The row count at the bottom is the sum of the files.

Columns are matched by name, ignoring case, so “Amount” and “amount” line up. If a file calls a column differently, rename it in that file’s settings before combining.

When the files do not have the same columns

Exports change over time: a column is added in June, another is renamed in September. Choosing all columns keeps everything and leaves blanks where a file had no such column. Choosing only the shared columns gives a clean, narrower table. The Source file column then tells you which files are behind the blanks.

Excel workbooks with several tabs

A workbook with one tab per month or per region works the same way: its tabs appear as tiles, and you either import them as separate sheets or combine them into one.

After combining: the checks worth doing

  • Compare the total row count with the sum of the files.
  • Build a quick pivot table with the source file in Rows and a count in Values, to see each file’s contribution.
  • Look for overlaps: two monthly exports that share a day create duplicates. Remove duplicates on the key column.
  • Check that dates and amounts were read the same way in every file, by sorting on them.

Prepare the files before combining

  • Put all the files to combine in one folder, and nothing else: dropping the folder then picks them all up.
  • Check that they share a delimiter and a header row. Open one or two in the free CSV viewer if in doubt.
  • Name the files so that the source column is meaningful, for example sales_2026-01.csv rather than export(3).csv: that name is what the Source file column will show.
  • If one file uses different column names for the same data, rename them in that file’s settings at import, so that they line up with the others.

Do it again next month in one click

Big Sheets records the steps you take after the import: cleaning, calculated columns, duplicates removed. Save them as a recipe, and next month replay the recipe on the new combined file instead of repeating everything. Your files stay on your device throughout.

Try it on your own file

Open it in Big Sheets: no sign-up, and your file never leaves this browser.

One plan: €29 incl. VAT per month, everything included, cancel any time. See pricing

Questions

How many files can I combine?
As many as you drop, within your device’s memory. Big Sheets is tested on sheets of up to 5 million rows.
Can I combine CSV and Excel files together?
Yes. Files and tabs of different formats appear as tiles and can be combined into one sheet.
Are my files uploaded?
No. They are read and combined in your browser.