Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. CSV & Data Analysis
  3. CSV File Comparator
Add to favorites

CSV File Comparator

Compare two CSV files and see which rows were added, removed or changed, matched by a key column or by position, with each changed value shown before and after.

Rows never leave your deviceMore csv & data analysisJump to full guide

Initializing in your browser…

You might also like

CSV Merger

Combine several CSV files into one, stacking rows with columns matched by name or placing files side by side, and see exactly which columns differ.

CSV Duplicate Remover

Find and remove duplicate rows in a CSV, by whole row or chosen columns, ignoring case, stray spaces or number formatting if you want, and review every group before you download.

CSV Viewer & Editor

Open a CSV as a sortable, searchable table, edit cells, rows and columns with undo, and download the result. Runs in your browser.

A sample run

A club compares its member list from the start of the month with the end of the month. The newer export lists its columns in a different order and someone typed a space after Bob's name.

members-before.csv and members-after.csv

Before:
id,name,email,plan
1,Alice,alice@example.com,pro
2,Bob,bob@example.com,free
3,Carol,carol@example.com,pro
4,Dave,dave@example.com,free

After:
id,plan,name,email
0,trial,Zoe,zoe@example.com
1,pro,Alice,alice@example.com
2,pro,"Bob ",bob@example.com
3,pro,Carol,carol@example.com
What CSV File Comparator produces

Matched by id, columns lined up by name

Added 1   Removed 1   Changed 1   Same 2

Changed  id 2  name: "Bob" -> "Bob "   plan: free -> pro
Removed  id 4  Dave, dave@example.com, free
Added    id 0  Zoe, zoe@example.com, trial

Every one of the 4 rows of the first file and 4 of the second is accounted for exactly once.

Because rows are matched by id and columns by name, the reordered columns and the new first row do not disturb the comparison: Alice and Carol are the same, Zoe is new and Dave has gone. Bob's row shows two changes, his plan and a trailing space in his name that is invisible in a spreadsheet. Turning on Ignore surrounding spaces would leave only the plan change.

See What Changed Between Two CSV Files

Load an older and a newer version of a CSV and get a clear list of what changed: rows added, rows removed, and rows whose values changed, with the old value struck through above the new one. Rows are matched by a key such as an ID, so a reordered file still compares correctly, and columns are lined up by name even when they are in a different order.

How to use

  1. 1Drop the older file on Before and the newer file on After, or press Try a sample pair.
  2. 2Choose how rows are matched: by a key column such as an ID, or by position.
  3. 3If matching by key, pick the key column.
  4. 4Open What counts as the same value to ignore case, spaces or number formatting if those differences do not matter.
  5. 5Read the totals and the table of differences; switch off Show only differences to see every row.
  6. 6Press Download report for the full comparison as a CSV.

Key features

  • Rows matched by a key column or by position with a git-style diff
  • Columns lined up by name, so reordered columns compare correctly
  • Added, removed and changed rows counted and listed
  • Old and new values shown together in every changed cell
  • Columns present in only one file shown and explained
  • Repeated keys reported with how often they occur in each file
  • Optional matching that ignores spaces, case, accent encoding or number formatting
  • A check that every row of both files is accounted for exactly once
  • CSV report with status, row numbers, changed columns and before and after values
  • Both files processed in your browser

How it works

Why a plain text diff is not enough. Comparing two CSV exports line by line works only when nothing moved. Sort the file differently, add a column, or reorder the columns, and a text diff reports almost every line as changed. This comparator reads both files as tables and matches rows the way a person would.

Matching rows. With By a key column, rows with the same value in the key column, usually an ID, are treated as the same record wherever they appear, so a file sorted differently compares cleanly. If a key appears more than once, those rows are paired in file order and the page tells you which key repeats and how often. With By position, as a diff, the files are compared in order using the same method as git diff, so a row inserted near the top counts as one addition instead of shifting everything below it into "changed".

Matching columns. With Line columns up by name on, columns are paired by their header, so id,name,email and email,id,name compare correctly. A column that only one file has is shown and explained: a column added in the newer file makes every row count as changed, because each row gained a value. Turn the option off to compare columns by position instead.

What counts as the same value. By default two values match only when they are identical, so "Bob" and "Bob " with a trailing space are different, which is often exactly the problem you are looking for. Under What counts as the same value you can ignore surrounding spaces, repeated spaces, upper and lower case, the two ways an accented letter can be stored, or compare numbers by value so 1.0 equals 1 and 007 equals 7.

Results you can use. Four totals summarise the change, and a check confirms every row of both files is accounted for exactly once. The table shows only the differences by default, with the row numbers in each file, and each changed cell shows the old value above the new one. Download the full comparison as a CSV with a status column, the row numbers, the names of the changed columns and every value before and after, ready to filter in a spreadsheet. Both files are read in your browser and never uploaded.

Where this fits a data pipeline

  • Checking what changed between two exports

    Compare last month's customer list with this month's to see who joined, who left and whose details changed.

  • Reviewing a colleague's edits

    Load the file you sent and the file you got back to see exactly which values were edited, even if rows were re-sorted.

  • Testing a data pipeline

    Compare the output of a script before and after a change to confirm only the expected rows differ.

  • Reconciling two systems

    Compare the same records exported from two systems, matching by ID, and ignore case or spacing differences that do not matter.

Tips & best practices

  • Always match by a key when one exists; it is the only mode that copes with re-sorted files.
  • If you only care about real changes, turn on Ignore surrounding spaces and Ignore case before reading the results.
  • Filter the downloaded report by its status column in a spreadsheet to work through additions and removals separately.
  • Put the older file on the Before side so removed rows mean rows that disappeared.

Examples

  • A member list after a month

    In the sample pair, matching by id finds 1 added member (Zoe), 1 removed (Dave), 1 changed (Bob) and 2 the same, even though the newer file lists its columns in a different order.

  • A trailing space

    Bob's name is "Bob " with a space in the newer file. By default that is a change; with Ignore surrounding spaces on, only his plan change from free to pro remains.

  • An inserted row

    Compared by position, a new row at the top of a 1,000-row file is reported as one added row, not as 1,000 changed rows.

Frequently asked questions

Which matching mode should I use?

Use By a key column when each row has an ID or another unique value; it handles re-sorted files. Use By position when there is no key and the order of rows matters, such as a log.

Why is every row shown as changed?

Usually because the newer file has a column the older one does not, so every row gained a value, or because the columns are matched by position and are in a different order. The notice above the table says which; turn on Line columns up by name if the headers match.

Why is a row changed when the values look identical?

Often a space at the end of a value, a different case, or a number written differently, such as 1.0 and 1. Changed cells are highlighted. Use What counts as the same value to ignore those differences.

What happens if a key appears more than once?

The rows with that key are paired in the order they appear in each file, and a notice says which key repeats and how many times in each file, so you can check them.

What is in the downloaded report?

One row per compared row, with its status (added, removed, modified or unchanged), its row number in each file, the names of the changed columns, and every column's value before and after.

How large can the files be?

Files of tens of thousands of rows compare quickly in a desktop browser. The table shows the first 200 differences and the report has all of them.

Are my files uploaded?

No. Both files are read and compared in your browser.

Related tools and how they differ

  • CSV Merger: Use it to combine two files into one rather than find the differences between them.
  • CSV Duplicate Remover: Use it to find repeated rows inside a single file.
  • Text Diff & Compare Tool: Use it to compare two pieces of plain text line by line, without treating them as tables.

Private by design

Rows and columns are parsed and transformed in memory in your browser. No record ever reaches a server.