Skip to content
Jellykit

CSV Join

Join two CSV tables on matching key columns, with inner, left, right or full outer joins, the way a lookup formula would.

  • Runs on your device
  • Works in the background
Loading tool

About CSV Join

Put a table on each side, such as orders on the left and customers on the right, and this tool adds the matching right-hand columns to every left row. It does what a spreadsheet lookup does, without formulas to drag down and without losing rows that have several matches.

Choose the join type: Inner keeps only rows that match, Left keeps every left row, Right every right row, and Full outer every row of both. Keys can span several columns and can be named differently on each side. By default case and stray spaces around keys are ignored.

How it works

  1. Both tables are read as RFC 4180 CSV, so quoted fields with commas and line breaks are understood. The delimiter is detected separately for each table unless you choose one.
  2. With no key named, the first column name both tables share is used. Name the keys yourself to join on columns with different names, such as id on the left and customer_id on the right, or on several columns at once.
  3. Each left row is paired with every right row that has the same key, so a key that appears twice on the right gives two result rows. Rows whose key is empty never match.
  4. The result has every left column followed by the right columns other than its key. A right column whose name is already used gets a number, such as note_2. It keeps the left table’s delimiter.

Questions

How is this different from a spreadsheet lookup?

A lookup formula returns only the first match. Here every match becomes a row, and you are told how many keys appeared more than once on the right, so duplicates cannot hide.

Which table goes on the left?

The one whose rows you want to keep: usually the longer table of records, such as orders. The lookup table, such as customers or prices, goes on the right.

Why did a row not match although the keys look the same?

Check for differences the eye misses, such as 007 and 7 or a non-breaking space. Case and ordinary spaces around keys are ignored unless you turn that off.

How large can the tables be?

Up to 5 MB each. A join that would produce more than 10 million cells, or more than 32 MB of text, is stopped with a message, as that usually means a key matches far more rows than intended.

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