Skip to main content

Join two Excel or CSV files

Import two Excel, CSV, TSV or JSON files, choose the key columns, then run an inner or left join locally in your browser.

  • Export

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

CSV, TSV, XLS, XLSX or JSON

CSV, TSV, XLS, XLSX or JSON

Was this tool useful?

On this page

How does this tool work?

A join enriches one table’s records with columns from another using matching keys. For example, it can attach customer names to orders or categories to product references. This tool joins two files and allows the key columns to have different names. It does not simply stack records or create a difference report. Check key meaning, type and repetition first: those choices determine which records appear and how many output rows are created by the relationship between the sources.

Load a left and a right file as CSV, TSV, XLSX, XLS or flat tabular JSON. Unlike the other spreadsheet interfaces that take only the first sheet, this one provides a sheet selector on each side. Its file inputs impose no numeric size cap here. That does not mean unlimited capacity: documents and results must fit memory. Styles and macros are not transferred, and displayed workbook values are read without recalculating Excel formulas.

Choose one key column on each side and the join type. Inner join, the default, keeps only left records with a right match. Left join also retains unmatched left records, filling right-side columns with null. Keys match exactly including type: JSON number 1 does not match text 1. Case and spaces matter. Null and missing properties never match; two empty strings can match. The tool does not silently normalize references before deciding correspondence.

Every matching right record creates one output row for the left record. Two left and three right occurrences of a key therefore yield six rows. Order follows left records and then their right matches. Left columns remain; colliding right names receive _right by default, then a number if needed for uniqueness. When key names are identical, the right key is not duplicated. Preview shows twenty rows, while CSV and XLSX exports contain the complete joined result.

How to use this tool

  1. Define left and right

    Put the primary list on the left and enrichment data on the right. Select sheets and confirm that each key is available.

  2. Check matching rules

    Choose keys and inner or left join. Inspect types, spaces and duplicates before interpreting missing matches or unexpected row multiplication.

  3. Inspect and export

    Check a simple match, an absent key and a repeated key. Review suffixed names and export after confirming the expected relationship and size.

Use cases

Enrich orders

Attach customer details using a shared identifier after checking reference-table uniqueness.

Connect reference tables

Map product codes to categories even when the key headings differ between files.

Keep a primary list

Use a left join to retain every main record and inspect missing enrichment in right-side fields.

Examples

Left join with a missing match

Left key customer_id, right key id, left join. Customer 2’s order remains with null right-side values.

Input

LEFT
customer_id;order
1;O01
2;O02
RIGHT
id;name
1;Ada

Result

[
  {
    "customer_id": "1",
    "order": "O01",
    "id": "1",
    "name": "Ada"
  },
  {
    "customer_id": "2",
    "order": "O02",
    "id": null,
    "name": null
  }
]

Two right-side matches

Key code, inner join, suffix _right. One left record creates two rows; the right name column becomes name_right.

Input

LEFT
code;name
A;Item
RIGHT
code;name
A;Version 1
A;Version 2

Result

[
  {
    "code": "A",
    "name": "Item",
    "name_right": "Version 1"
  },
  {
    "code": "A",
    "name": "Item",
    "name_right": "Version 2"
  }
]

Tips and best practices

  • Check reference uniqueness when expecting one-to-one enrichment. Repeated keys are not a syntax error; they legitimately multiply output records according to their matching relationships.
  • Normalize types and labels before joining when necessary. Trimming spaces or converting a numeric reference into text should be an explicit preparation decision rather than an assumed matching feature.
  • Distinguish joining from vertical merging. Use Merger to stack similar exports, and Comparator to diagnose additions or changes between versions rather than enrich their columns.

Frequently asked questions

How do inner and left joins differ?

Inner keeps only left records with right matches. Left retains every left record and fills absent right fields with null. Right and full outer joins are not available here. Swap files only when changing the relationship direction suits your intended result.

Why are there more rows than in the left file?

Every right match creates a row. Repeated keys can therefore create a many-to-many relationship: two left records and three right records yield six combinations. Inspect duplicates instead of assuming that enrichment always preserves the original row count.

Can identical-looking keys fail to match?

Yes. Type, spaces and case are significant. JSON number 1 differs from text 1, and A differs from a or A followed by a space. Null and missing properties never match, unlike identical empty strings.

Can I select a composite key?

This interface uses one key per side. It supports different names and sheet selection but provides neither composite keys nor fuzzy matching. Prepare an explicit unambiguous key beforehand when business identity depends on several fields rather than one.

Related tools

Tools similar or complementary to this one.

Similar tools

Merge multiple Excel or CSV files into one table with automatic column alignment.

Data & spreadsheetsUse this tool
GuideBest practicesBeginner

Split a CSV or Excel table into smaller files

Discover when to split a large table by row count or by a column value, and how to preserve a useful structure in every output file.

29 August 20262 min