Compare CSV Files Online

Free • Quote-aware CSV • Local in browser

Paste or upload two CSV files to compare them by a chosen key column or by entire row. Find rows only in CSV A, only in CSV B, shared by both, or combined—locally in your browser.

Input CSV Files

CSV A

(0 rows)

CSV B

(0 rows)

Comparison Mode

Options

CSV Comparison Results

Only in CSV A

0

No results

Only in CSV B

0

No results

In Both CSVs

0

No results

All Combined

0

No results

How to Compare CSV Files in 3 Steps

Compare two structured CSV or TSV exports in seconds without writing VLOOKUP formulas or Python scripts.

  1. Load Your Two CSV Files

    Paste CSV text or upload .csv, .tsv, or .txt files up to 10 MB into CSV A and CSV B. Auto-detect handles commas, semicolons, tabs, and pipes.

  2. Choose Header and Key Column

    Confirm whether the first row is a header, choose Key column or Entire row matching, and pick the column to compare in each file.

  3. Review and Export 4 CSV Results

    Review Only in CSV A, Only in CSV B, In Both CSVs, and All Combined. Sort any box, copy the rows, or download ready-to-use CSV files.

Comparing plain one-column lists instead of multi-column tables? Try our paste two Excel columns page.

Worked 8-Row Example: Comparing Two Product Catalog CSVs

A realistic 8-row catalog example showing quoted commas, header handling, column matching, and all four output boxes.

This worked example uses two 8-row product catalog exports—one from March (CSV A) and one from April (CSV B). Click Show 8-Row Example in the tool above to load the exact same data and verify every count live.

Two real-world quirks are included on purpose: every city field contains a comma inside quotes ("Austin, TX"), sku-105 in CSV A uses lowercase letters while CSV B uses SKU-105, and SKU-103 in CSV B has both a trailing space and a price change from 68.00 to 64.00.

Input: CSV A (march-catalog.csv, 8 data rows)

sku,product,city,price
SKU-101,Desk Lamp,"Austin, TX",42.00
SKU-102,USB-C Hub,"Seattle, WA",29.00
SKU-103,Monitor Stand,"Denver, CO",68.00
SKU-104,Webcam Cover,"Boston, MA",9.00
sku-105,Laptop Sleeve,"Portland, OR",24.00
SKU-106,Cable Tray,"Chicago, IL",35.00
SKU-107,Mouse Pad,"Miami, FL",18.00
SKU-108,Keycap Set,"Atlanta, GA",54.00

Input: CSV B (april-catalog.csv, 8 data rows)

sku,product,city,price
SKU-102,USB-C Hub,"Seattle, WA",29.00
SKU-103 ,Monitor Stand,"Denver, CO",64.00
SKU-105,Laptop Sleeve,"Portland, OR",24.00
SKU-106,Cable Tray,"Chicago, IL",35.00
SKU-108,Keycap Set,"Atlanta, GA",54.00
SKU-109,Webcam Light,"Phoenix, AZ",39.00
SKU-110,Phone Dock,"Dallas, TX",31.00
SKU-111,Wrist Rest,"Tampa, FL",22.00

Four Result Categories (Default Settings: Match by sku Column)

With First row is header, Trim whitespace, and Remove duplicate keys/rows enabled, and Ignore case off, the tool compares both files on the sku column (Column 1) without splitting "Austin, TX" on its inner comma:

Result box Row count Matched or unmatched SKUs What it tells you
Only in CSV A 4 SKU-101, SKU-104, sku-105, SKU-107 Rows present in March but missing from April (including lowercase sku-105 while case-sensitive)
Only in CSV B 4 SKU-105, SKU-109, SKU-110, SKU-111 Rows added in April (plus uppercase SKU-105 until Ignore case is checked)
In Both CSVs 4 SKU-102, SKU-103, SKU-106, SKU-108 SKUs carried across both months; SKU-103 matched because Trim whitespace stripped its trailing space
All Combined 12 All 8 keys from A + 4 unmatched keys from B Merged catalog export with duplicate keys removed

How Changing One Setting Alters the Output

  • Turn on Ignore case: sku-105 and SKU-105 now match as the same product. In Both CSVs grows to 5 rows (SKU-102, SKU-103, sku-105, SKU-106, SKU-108), Only in CSV A drops to 3 (SKU-101, SKU-104, SKU-107), Only in CSV B drops to 3 (SKU-109, SKU-110, SKU-111), and All Combined drops to 11 rows.
  • Switch Match by from Key column to Entire row: every cell in a row must match. Because SKU-103 changed price from 68.00 to 64.00, it leaves In Both CSVs (now 3 rows: SKU-102, SKU-106, SKU-108) and appears in both Only in CSV A and Only in CSV B, letting you catch edited records immediately.
  • Turn off Trim whitespace: the trailing space after SKU-103 stops it from matching SKU-103, even in key-column mode.
  • Switch Output to Selected column values: exports just the SKU values instead of full CSV rows, which is convenient if you want to paste the unmatched IDs straight into our compare product codes tool or a database query.

Need to work inside Excel with formulas instead of a browser? Read how to compare two lists in Excel, or check How to Use List Compare for troubleshooting invisible characters and UTF-8 BOMs.

How CSV Delimiters, Headers, and Column Matching Work

Spreadsheet exports break naive line-by-line or plain comma-split tools. These four details keep CSV comparisons accurate.

Common CSV Comparison Tasks

  • Inventory & Price Catalogs

    Compare monthly supplier price sheets by SKU to spot discontinued items, new arrivals, and modified prices.

  • CRM & Subscriber Exports

    Match CRM contact exports against newsletter CSVs by email column to find unsubscribed or newly added leads.

  • Billing & Invoice Checks

    Reconcile payment processor CSVs against accounting ledgers by invoice ID to flag missing or mismatched transactions.

  • Database Table Snapshots

    Diff two exported SQL or analytics tables by primary key without spinning up a staging database.

When to Compare CSV Files vs Plain Lists

Use CSV Compare whenever your data has multiple columns, headers, or quoted values; use plain list tools when each line is a single value.

Many online list tools split every line on literal commas, which corrupts rows containing addresses, product descriptions, or formatted numbers. Our CSV comparison tool parses every row into columns first, strips invisible UTF-8 byte-order marks automatically, and compares the exact column or whole row you care about.

Everything runs locally in your web browser with zero server uploads. If one of your CSVs contains repeated entries you want to inspect and clean before comparing two files, you can also run it through our duplicate checker first.

If you only copied a single column of names, emails, or IDs, our compare two lists on our homepage handles plain newline- and delimiter-separated text directly.

All Tools

Every tool runs locally in your browser with no sign-up and no server uploads.

Compare CSV Files FAQ

Practical answers about CSV delimiters, headers, column alignment, file size limits, and browser privacy.

What is the difference between comparing CSV files by key column and by entire row?

Key column mode matches rows using one column you pick from CSV A and one column from CSV B—such as email, SKU, or order_id—even if the two files have different extra columns or column order. Entire row mode checks every cell across the row, so a record whose price or status changed appears in both Only in CSV A and Only in CSV B.

How does the tool handle quoted commas, semicolons, and TSV files?

Yes. Each CSV box has its own Delimiter dropdown with Auto-detect enabled by default, supporting commas, semicolons (common in European Excel exports), tabs (TSV), and pipes. The parser follows RFC-4180 quoting rules, so commas inside double-quoted cells like "Austin, TX" stay inside one column instead of shifting the rest of the row.

Can I compare two CSV files that have different column orders or header names?

Yes. When Match by is set to Key column, CSV A and CSV B have independent Key column dropdowns. If CSV A puts customer_email in Column 1 and CSV B puts Email Address in Column 4, pick each file's own column and the tool aligns them automatically.

What file formats and sizes are supported when comparing CSV files?

Each uploaded .csv, .tsv, or .txt file can be up to 10 MB, and pasted CSV text has no hard row limit. Excel workbooks (.xlsx or .xls) cannot be read directly—save each sheet as CSV UTF-8 in Excel or Google Sheets first, then upload or paste them here.

Are my CSV files uploaded to a server?

Yes. All CSV parsing, column matching, sorting, and file downloads run locally inside your browser. Neither file is uploaded to our servers, and closing or refreshing the page clears your data.

How are header rows handled in results and downloads?

When First row is header is checked, the first row populates the Key column menus and is excluded from the row counts so column titles do not show up as unmatched data. When you copy or download Full CSV rows, the header row is automatically prepended to keep the exported file valid CSV.