Multi-CSV Relationship Finder

Upload 2–10 CSV files and find which columns link them: shared values, likely primary keys, one-to-many joins, a diagram and ready SQL JOINs.

Tool

Was this tool useful?

About this tool

About Multi-CSV Relationship Finder

Got a folder of exports – customers, orders, products, payments – and no idea how they connect? Open the CSV files together. The finder compares every column with every column in the other files, measures how many values they share, spots columns that look like primary keys (filled and unique) and tells you whether each link is one-to-one, one-to-many or many-to-many – even when the column names are different. You get a diagram, a table of links and SQL JOIN statements to start from.

How it works

Overlap = distinct values found in both columns ÷ distinct values of the smaller column. A column is a possible key when it is fully filled and at least 98% of its values are unique.

Example

orders.cust shares all its values with customers.customer_id (unique) – a one-to-many link; orders.product_code links to products.sku.

How to use this tool

  1. Choose 2–10 CSV files (or try the sample).
  2. Set the lowest overlap % to show.
  3. Read the links and copy the SQL joins.

Frequently asked questions

Does it need matching column names?

No. It compares the values, so cust and customer_id are linked when they hold the same IDs.

How big can the files be?

Each column keeps up to 300,000 distinct values, so files with hundreds of thousands of rows work in a normal browser.

Is my data uploaded?

No. Everything runs in your browser and stays on this device.

Are my files uploaded by the Multi-CSV Relationship Finder?

No. The Multi-CSV Relationship Finder reads your files in your browser, so your data stays on your device. Very large files may be slow on older phones.