Skip to content
Diff two CSV files

Compare two CSV files and see what changed

Line up last month's export against this month's by an ID column. Every row comes back labelled Added, Removed, Changed or Same, with the old and new values next to each other.

Free. No sign-up. Opens with two sample customer exports so you can see the diff first.

How it works

  1. Load the older file

    The Open file step holds the earlier version. In the sample it's October's customer export.

  2. Join the newer file on the ID

    A Full Join matches rows by customer_id and also keeps rows that exist in only one file, so additions and removals both show up.

  3. Read the status

    A short Custom SQL step labels each row and puts the old and new values side by side. A blank ID is labelled No ID and an ID used twice is labelled Duplicate ID, so nothing is paired by guesswork. Add a Filter on status to hide the rows that are the same.

CSV Notebook comparing two customer files with a Full Join and a Custom SQL step, showing rows labelled Same, Changed, Removed and Added

Why CSV Notebook

  • Private

    Runs in your browser. Your files are never uploaded, so nobody else can see them.

  • Repeatable

    No AI and no guesswork: the same steps on the same file give the same result every time. Your steps are saved as a notebook in your browser. Next month, open it and drop in the new file: if a column was renamed, the step that needs it stops with an error that names it, and Pro can map it for you.

  • Auditable

    Every transformation step is SQL you can read, so you can check exactly what happened to your data. Each step also shows a preview of its output and a summary of what it did, so you can see the result before you export.

Worked example

customers_october.csv (compared with November)
customer_idemailplan
C-01ana@example.comPro
C-02ben@example.comFree
C-03cy@example.comPro
C-04dee@example.comFree
Every customer, labelled
customer_idstatusold_emailnew_emailold_plannew_plan
C-01Sameana@example.comana@example.comProPro
C-02Changedben@example.comben@example.comFreePro
C-03Removedcy@example.comPro
C-04Changeddee@example.comdee@newmail.comFreeFree
C-05Addedeli@example.comFree

Between October and November, Ben upgraded to Pro, Dee changed email address, C-03 left and C-05 signed up. Rows are matched by customer_id, so it doesn't matter if the two files are sorted differently.

Compare two sample exports

October and November customer lists, already joined and labelled. Replace both files with your own versions to see your diff.

Open in CSV Notebook

Frequently asked questions

Does the order of rows matter?

No. Rows are matched by the key column, not by their position in the file, so a re-sorted export doesn't show up as hundreds of changes the way a line-by-line text diff would.

What if my files don't have an ID column?

The comparison needs a column that identifies each row in both files, such as an ID, SKU or email address. Files without one can't be compared row by row here yet.

How do I compare more columns?

Add each one to the CASE line in the Custom SQL step, for example OR "phone" IS NOT "new_phone", and add it to the list of columns. IS NOT treats two blank values as equal, so empty cells don't count as changes.

Can the two files use different column names?

Yes. Pick the key column for each file separately in the Join step, then refer to the newer file's columns by the names the Join step gives them.

Is there a size limit?

Both files are loaded into a database that runs inside your browser, so the limit is your computer's memory rather than a fixed number of rows. Nothing is uploaded.

What about blank, repeated or slightly different IDs?

A row with a blank ID gets No ID, and an ID that appears more than once in either file gets Duplicate ID, instead of being matched to the wrong row. IDs must match exactly, including capitals and spaces, so C-03 and c-03 count as different customers. A Format step can trim or lowercase the older file's ID column; the newer file's IDs are matched exactly as they are.