How to compare two CSV files
CSV files are how most systems hand data over: database exports, bank statements, product feeds, reports. When two exports should match and don't, you need to find the handful of changed rows among thousands. This guide shows how.
Compare two CSV files in four steps
- Open the CSV tool. Go to the CSV comparison workspace. It reads
.csvand.tsvfiles. - Add the original file as File A by dropping it on the left box or clicking to browse.
- Add the new file as File B on the right. The comparison starts automatically.
- Step through the differences. Changed cells are highlighted in two grids that scroll together. Click a cell to see the old and new value side by side.
Match rows by ID, not by line number
Two exports of the same table often come out in a different order, or with a few rows inserted. Comparing line 500 with line 500 then reports hundreds of false differences. Under Row matching, pick:
- By key column and choose the column that identifies a row, such as
id,emailororder_no. Rows are paired by that value wherever they sit in the file. - Smart align to detect inserted and deleted rows automatically when there is no key.
- By position when the files must line up exactly.
If the two files have the same columns in a different order, turn on Match columns by header.
Ignore differences that don't matter
- Trim whitespace ignores leading and trailing spaces, a common side effect of exports.
- Ignore case treats
ACTIVEandactiveas equal. - Numeric tolerance ignores tiny differences such as
10.000001against10. - Only rows with changes hides every row that matches.
Export the differences
The Audit log lists each change with its row, column, old value, new value and numeric delta. Export it as an Excel report or as CSV to load into another tool, or as a PDF report to share.
Typical uses
- Checking a database migration: export the table before and after and compare.
- Reconciling a bank or payment export against your ledger.
- Spotting what changed in a supplier's price list or product feed.
- Verifying that a data pipeline change didn't alter its output.
Frequently asked questions
Are my CSV files uploaded?
No. They are parsed by your browser and stay on your device. There is no server that receives them.
How large a file can I compare?
It depends on your computer's memory rather than an upload limit. Files with tens of thousands of rows work on a typical laptop.
Can I compare a CSV against an Excel workbook?
Yes. Use the Excel tool, which accepts both .xlsx and .csv.
Try it now: free, no sign-up, nothing uploaded