How to Merge Multiple CSV Files and Combine Them Into One Large CSV File

A CSV file can be useful to work with because it’s compatible with so many different systems and applications. But you may find yourself in a situation where you need to combine multiple CSV files into a larger file, particularly when you have downloaded a large amount of data that you need to manage or edit and it’s been downloaded as a bunch of separate CSV files.

Whether you are handling data for yourself or as part of your job, then you may be the recipient of CSV files that were sent by another company, or that were generated as part of a process that is necessary for evaluating things like inventory or sales data. These files are often created automatically by different reporting systems on websites, or by internal systems at businesses, and the data that they contain can be very important.

Unfortunately these files often come in large numbers, and the data that they contain is often more valuable as a whole than as separate files. Sure, you could open each file individually and manually copy all of that data into one large file, but that can be very tedious, and is an exercise that is very prone to mistakes.

Fortunately Windows has a method that you can use to quickly combine all of your CSV files into one large file. This is accomplished with the command tool, and is a method that can save a lot of time and frustration.

How to Combine Multiple CSV Files Into One

  1. Browse to the folder with the CSV files.
  2. Hold down Shift, then right-click the folder and choose Copy as path.
  3. Open the Windows Command prompt.
  4. Type cd, press Space, right-click and select Paste, then press Enter.
  5. Type copy *.csv combined-csv-files.csv and Press Enter.

Our article continues below with additional information on how to merge multiple CSV files into one, including pictures of these steps.

How to Merge CSV Files in Windows 7 Using the CMD Tool (Guide with Pictures)

The steps below are going to assume that you have a folder containing all of the CSV files that you wish to combine into the one, larger CSV file. If not, then create a new folder and move all of your CSV files into that folder.

Step 1: Browse to the folder containing the CSV files that you would like to merge.

browse to the folder with the csv files

Step 2: Hold down the Shift key on your keyboard, right-click the folder containing the CSV files that you wish to merge, then click the Copy as path option.

hold shift to copy the folder location as a path

Step 3: Click inside the search field at the bottom-left corner of the screen, type cmd then click the “cmd” result under Programs.

open the command prompt

Step 4: Type cd, press the spacebar once, then right-click and choose the Paste option.

change the directory

The screen should now look something like the screen below. If it does, then press Enter on your keyboard.

full directory change command

Step 5: Type copy *.csv combined-csv-files.csv after the file path (or you can just copy it from this article, then use the right-click, Paste option that we used in Step 4), then press Enter on your keyboard.

Note that you can replace the “combined-csv-files” part of that command with whatever name you would like to use for the merged CSV file that you are about to create.

enter the commnad to create the combined csv file

If everything worked properly, you should see a screen similar to the one shown below.

how to merge csv files into one combined csv file in windows

Now if you go back to the folder that contained the original CSV files, you should see a new CSV file with the name that you chose in Step 5.

folder with the combined csv file

If you open that file, it will contain all of the information from each of the CSV files that were involved in the file merge.

This whole process is much simpler when all of the files that you download are in a similar format with the same columns. This merge tool is going to simply combine all of these individual files into one big one, regardless of whether all of the data matches. So if some of your files have different column headings, or a different number of columns then this may not be the best solution.

Are the formulas in your Excel workbook not calculating? Learn how to enable automatic calculation in Excel 2013 if your workbook had previously been set to manual calculation.

Additional Reading