Skip to content
Jellykit

CSV Merge Columns

Combine two or more CSV columns into a new column, joined by a separator you choose, such as a full name or address.

  • Runs on your device
Loading tool

About CSV Merge Columns

Join first and last names into one name, street, city and postcode into one address line, or any set of columns into a key. Name the columns in the order you want them, pick the separator, and get the CSV back with the new column added.

Empty cells can be skipped so a missing middle name does not leave a double space, and the original columns can be kept or replaced. Quoting is handled properly, so a merged value that contains the delimiter stays in one cell.

How it works

  1. The CSV is read according to RFC 4180, so quoted fields with commas and line breaks are understood, and the delimiter is detected automatically.
  2. Columns can be named by their header or by position: #1 is the first column. They are joined in the order you list them, which need not be their order in the file.
  3. Typing \t in the separator joins with a tab and \n with a line break; anything else is used exactly as typed, spaces included.
  4. The result is written with the same delimiter as the input, quoting only the cells that need it, so the file opens in a spreadsheet as before.

Questions

What if a column name contains a comma?

Wrap it in double quotes in the list, for example "City, state", zip. You can also refer to a column by its position, such as #3.

What happens if the new name is already taken?

A number is added, so a second column called merged becomes merged_2. Existing columns are never renamed or overwritten.

How large a file can it handle?

Up to 5 MB of CSV, which is typically tens of thousands of rows. The file is read and written in your browser.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.