Data & CSV

Merge CSV Columns

Merge CSV Columns into One

Combine two or more CSV columns into one with a separator, skipping blanks, with a live preview.

About this tool

About Merge CSV Columns

Combine first and last name into a full name, build a single address line from street, city and postcode, or create a unique key from two ID columns. Tick the columns in the order you want them joined (numbers show the order), pick a separator such as a space, comma and space, dash or slash, or leave it empty to join directly, and name the new column. Skip empty cells is on by default, so a missing middle name doesn't leave a double space or a stray comma. Choose whether to keep the original columns next to the merged one or replace them. A live preview shows the first rows before anything changes, and the whole step can be undone. It works the same on ten rows or a hundred thousand, and the result exports as CSV, Excel-friendly CSV, TSV or JSON. Everything happens in your browser, so contact lists and customer data stay on your device.

Built and maintained by Abhi JainUpdated

How to Merge Columns in a CSV

  1. 1

    Open the CSV

    Drop the file on the page or paste the data. Merge columns is already open.

  2. 2

    Tick the columns in order

    Tick the columns in the order they should appear. The numbers beside them show the order.

  3. 3

    Set separator and name

    Type the Separator (\t for a tab), a New column name, and choose whether to keep the original columns. Check the preview.

  4. 4

    Merge and export

    Click Merge columns, then open Export to download the file.

Merge CSV Columns: questions and answers

How do I combine first and last name in a CSV?

Tick first name, then last name, set the separator to a single space, name the column full_name and click Merge columns.

How do I avoid double commas when some cells are blank?

Keep Skip empty cells turned on. Blank values are left out, so 'Street, , City' becomes 'Street, City'.

Can I keep the original columns?

Yes. Tick Keep the original columns and the merged column is added after the last selected column.

How do I split a merged column again?

Use Split CSV Column with the same separator, or press Undo right after merging.