toolgarden.xyz
中文

CSV Merge

Free online tool to merge multiple CSV files by table rows into one CSV file

File merge

Merge multiple CSV files by table rows into one CSV file.
File list0 files

Uploaded files will appear here.

Merged result

You are in CSV mode. Upload files and click merge.

About this tool

CSV merge combines rows from multiple tabular text files for batch exports sharing one schema. Reliable merging involves duplicate headers, column order, delimiters, quoting, embedded newlines, and character encoding rather than raw text concatenation alone.

If column names or order differ, vertical append can place values under the wrong fields. Choose a canonical header, verify common delimiter and encoding, and sample the beginning and end of every source in output.

How to use it

  1. Compare headers and delimiters

    Confirm names, order, comma or other delimiter, and encoding match.

  2. Arrange data order

    Keep one header and place files by date or batch.

  3. Validate output

    Count rows and inspect quoted fields, non-ASCII text, and every file boundary.

Supported range and limits

Input / output
Several CSV files in, one CSV out
Header handling
The first file's header wins; header rows in later files are recognised as headers rather than treated as data
Biggest risk
A different column order silently misaligns the data with no error; always spot-check a few rows afterwards
Differing column counts
A file with an extra or missing column produces shifted rows or empty cells
Delimiters and quoting
Parsed by standard CSV rules; commas and newlines inside a field must be quoted to survive
Encoding
Handled as UTF-8. GBK-encoded CSV exported from Excel can come out garbled

When you would use it

  • Compiling periodic exports

    Combine structurally identical daily or monthly records for analysis.

  • Joining collection batches

    Append CSV exports from separate runs of the same form into one dataset.

  • Consolidating exports from several sources

    Combine CSVs from different systems or periods into one file before importing it into a spreadsheet or database.

What to know before you start

  • Identical column names with different data types can still break downstream analysis.
  • Commas and line breaks inside a field require correct quoting.
  • Merging does not deduplicate, sort, or clean records automatically.

Related concepts

header row
The first row naming the fields represented by columns.
delimiter
A character separating fields, commonly comma, semicolon, or tab.

Frequently asked questions

How does CSV Merge handle different headers?
It keeps every column that appears across the source files and adds a source_file column.
How do I check the merge did not misalign?
Find the first row of each source file in the merged output and confirm its values sit under the right column names. Misalignment from a differing column order raises no error, so this check has to be manual.
What if the files do not share the same columns?
Normalise column names and order across every source in a spreadsheet first, then merge. That is far more reliable; and faster; than repairing misaligned data afterwards.