Use CSV File Merger with the two input tables. Choose Union of columns to align headers by name and include new columns, or Require identical columns when both schemas must match exactly. Try CSV File Merger.
Why simple row concatenation fails
One CSV may start with name,city while another starts with city,score,name. Joining lines without parsing headers puts values under the wrong labels. Quoted commas and line breaks inside fields make raw string concatenation even more fragile.
A safe merge parses each CSV and aligns fields by header name. The union strategy keeps columns in the first file's order and appends newly discovered columns from the second file. Missing values become blank cells rather than shifted data.
A column-union example
Suppose file A contains name,city followed by Alice,Hanoi. File B contains city,score,name followed by Saigon,15,Bob. The union header becomes name,city,score. The first row has an empty score; the second becomes Bob,Saigon,15.
This is not a database join. It appends rows from both tables under one combined header set. It does not combine Alice's record with Bob's based on a matching key.
- Review blank fields produced by genuinely absent source columns.
- Keep original CSV files to diagnose downstream import errors.
Choose union or strict mode deliberately
Use Union of columns when importing exports from systems that added new fields over time. Use Require identical columns when you need to catch schema drift early. Strict mode requires the same header names in the same order, so it rejects otherwise similar files with rearranged columns.
Before exporting, inspect whether duplicate column names, extra spaces in headers or capitalization differences could create unexpected columns. Consistent source headers are the easiest way to make future merges predictable.
Checks before uploading the result to a database
Count data rows in both inputs and verify the merged output has the expected total. Spot-check a row with quoted commas, a row missing the optional score field and a row with a leading-zero identifier.
CSV stores cells as text; another application may guess types and strip leading zeros. Import identifiers explicitly as text where possible. Do not assume a successful merge means the combined file meets every downstream system's field requirements.
Common questions
Will CSV File Merger join rows by ID?
No. It appends rows while aligning columns; it does not perform relational joins.
Does strict mode allow a different column order?
No. The headers must match in name and order.