Skip to Content
RowSlice

Free CSV Tool

Merge CSV Files into One

Combine monthly exports, per-store reports or split parts into a single CSV. Columns are lined up by name, even when the files don't match exactly.

  • No file size limit
  • Never uploaded
  • Free, no sign-up

How to Merge CSV Files

  1. Select or drag in all the CSV files you want to combine. You can add more from other folders afterwards.
  2. Check the column notice. If some files have different columns, keep By column name selected.
  3. Optionally tick Add a source_file column to record where each row came from.
  4. Press Merge Files and download the merged CSV.

Matching Columns by Name

Exports from the same system are rarely identical over time. A column gets added in March, two columns swap places after a software update, or one store's export has an extra field. Pasting such files together lines values up under the wrong headings without any warning. Matching by name avoids that:

FileHeader
january.csvid, name
february.csvname, id, email
Merged resultid, name, email — January's rows have an empty email

Names are compared after removing spaces at the start and end, so email and email count as the same column. Choose By position only when your files have no reliable header, or the headers are spelled differently but the columns are known to be in the same order.

Other Ways to Merge CSV Files, and Their Catches

On Windows, copy *.csv merged.csv in Command Prompt joins files byte by byte. It is fast, but it repeats every file's header row inside the data, can glue the last row of one file onto the first row of the next when a file does not end with a line break, and ignores column order entirely. We ran it and the other usual commands on test files in merging CSV files from the command line. Excel's Power Query can combine a folder of files properly, but the result still has to fit in 1,048,576 rows if you load it into a sheet.

This tool reads each file in small pieces and writes one merged file straight to your disk, so the combined result can be far larger than Excel could open. When all files share the same header and delimiter, rows are copied through exactly as they are, including quotes and leading zeros.

Last updated .

FAQ

Frequently Asked Questions

How do I combine multiple CSV files into one?

Select all the files at once in the file picker (hold Ctrl or Cmd, or press Ctrl+A inside the folder), or drag them in together. Use Add More Files for files in other folders. Then press Merge Files and download the combined CSV.

What if my files have columns in a different order?

Keep By column name selected. The tool reads the header of every file, builds one list of all the columns, and puts each value under the right heading. If a file does not have a column, those cells are left empty.

Will the header row be repeated in the middle of the merged file?

No. The merged file has a single header row at the top; the header row of each input file is skipped. If your files have no header row, untick First row is a header under Advanced Options and every row is kept.

Can I tell which file each row came from?

Yes. Tick Add a source_file column and every row gets the name of the file it came from in an extra last column. This is useful for monthly or per-store exports whose file names carry information that is not inside the data.

Can I merge files that use different delimiters or encodings?

Yes. The delimiter (comma, semicolon, tab or pipe) and encoding of each file are detected separately. The merged file uses the delimiter of the first file and is saved as UTF-8.

How many files, and how large, can I merge?

Hundreds of files and a combined size of many gigabytes are fine, because files are read one after another in small chunks rather than loaded into memory. The result is written to your own disk, so you need free space about the size of all the files together. Nothing is uploaded.

In which order are the files merged?

In the order shown in the file list, which is the order your system gives the files when you select them. If order matters, name the files so they sort correctly, for example 2026-01.csv, 2026-02.csv.

Guides

More Tools

More CSV Tools