CSV Diff
Compare CSV files online to instantly find differences, highlight changes, and analyze data. This free CSV diff tool ensures fast, accurate results with no installation required.
Frequently Asked Questions About Online Calculators
Which column should I match on?
One that identifies the record and does not change: an id, SKU, order number or email address. Quantity, price and a sort position will not separate two records reliably.
What if my file has no header row?
Switch the header option off and matching falls back to row position. That is dependable only when neither file gained or lost a row, because everything after an insertion shifts.
Will my original file be changed?
The result is downloaded as a separate file. Keep your original until you have checked the Row-by-row table comparison.
What should I check before using the result?
Open the Row-by-row table comparison in the application that consumes it and spot-check the parts that matter to you; the original file stays untouched if you need to re-run with different options.
Is CSV Diff free and mobile-friendly?
Yes. This tool is free with no trial limit, subscription, or watermark. The responsive layout works on iOS and Android browsers; you can paste from your files app or copy results back to your device.
Are my files uploaded to your servers?
Comparison runs locally in your browser for supported formats. Your files and text stay on your device and are not stored on servers.
How CSV Diff Works
Rows in a table move, so matching them by position reports an inserted row as a change to whatever now sits on that line. Choose the column that identifies each record and this page follows the records instead, splitting real edits apart from rows that were only added or deleted. Use this tool when you need to compare CSV, TSV, or spreadsheet exports without installing desktop software.
Input and Output
- Input: Paste text or upload files in CSV, TSV, or spreadsheet export formats. Two files are required: the original and the modified version.
- Output: A row-by-row table comparison showing status labels (Changed, Added, Removed) and highlighted cell-level differences.
Step-by-Step Workflow
- Add the original — Paste or upload the first version in the left panel. Supported inputs include CSV, TSV, and spreadsheet exports.
- Add the modified version — Paste or upload the second version in the right panel.
- Select the matching key — In the UI, identify the column that uniquely defines a record (e.g., ID, SKU, Order Number). If your file has no header row, switch the header option off; matching will fall back to row position, which is only reliable if no rows were inserted or deleted.
- Run the comparison — Click the "Compare CSV" button to generate the diff.
- Review the results — Inspect the status of each row. "Changed" means the same record carries different values; "Added" and "Removed" mean a record appeared or went away. These distinctions are only valid when matching is based on a key rather than line numbers.
- Export — Download the result as a separate file. Keep your original until you have checked the Row-by-row table comparison.
What Changes and What Stays the Same
When you match on a key, the tool separates structural shifts from actual data edits.
- What stays the same: The original file remains untouched. The result is a separate download.
- What changes: The tool highlights specific cell values that differ between the two records identified by the key.
- Failure case: If you match by position (no key) and one file has an inserted row, the tool will report every subsequent row as "changed" because the alignment shifts. This is why a stable identifier column is critical.
Privacy and Data Handling
Processing runs locally in your browser whenever the format allows. For supported browser-side formats, your files and pasted text stay on your device. Nothing is uploaded, stored, or logged on servers. This is critical when diffing contracts, API keys, customer data, or unreleased code.
Practical Use Cases
- Spreadsheet export reconciliation: Compare two versions of a sales report to find which numbers were altered.
- Database dump row comparison: Verify that a production migration preserved all records by matching on primary keys.
- Survey data QA: Identify which respondents added or removed questions between two survey waves.
Related toolcompare two lists.