Skip to content
FormatMyCSV
Runs in your browser · Files are never uploaded

Merge CSV Files

Append CSV files with matching columns into one file and keep one copy of the shared header.

Workspace

CSVCSV

Input data

or drop files here

Options

Cleanup options
Advanced options

Use column numbers starting at 1. Omitted columns are deleted.

Enter comma-separated names in output order. Leave positions blank to keep their names.

Preview

Your rows and columns will appear here.

How to use Merge CSV Files

  1. Choose or drop multiple CSV files together.
  2. Confirm whether the first row is a header. Each file must use the same column count and header names in the same order.
  3. Review the merged row count, then download the CSV.

Example

Name,ZIP code,Account ID,City
Maya Chen,02108,123456789012345678,Boston
Leo Ortiz,00501,300123450000000012,Holtsville
Ana Martín,08001,518740000000000006,Barcelona

This sample shows the expected column layout. Choose two or more files with the same columns to append their rows.

Frequently asked questions

What is a CSV file in Excel?

A CSV is one text table that Excel opens as a grid. When several exports represent parts of the same table, merging appends their records into one file. Review the combined header before opening it in Excel to make sure it still describes each column correctly.

What type of CSV to use?

Use files with the same column count and header names in the same order. UTF-8 is a practical choice across files, and automatic detection can recognize different separators in different inputs. Check the merged preview so corresponding values remain aligned under the correct header.

Will each source file add another header to the merged CSV?

No. When the first row is treated as a header, the merge keeps one copy of the shared header. Columns must match in name and order. If a file is headerless, use the appropriate first-row setting for the inputs so the first data records are retained.

In what order are the CSV files combined?

Rows are appended in the order the file picker or drop action supplies. Within each file, the original order is preserved. Check the preview when order matters, such as monthly exports. The merge runs in your browser and FormatMyCSV never uploads the files you select.

Can I merge files and remove duplicate rows at the same time?

Yes. Enable Remove duplicate rows after selecting the source files. The first occurrence is kept and the report counts later duplicates. If two providers use different column names, prepare the inputs with the CSV formatter first so their columns match before you merge them.