Compare two CSV files by row position or key columns. Review added, removed, and changed records, check column differences, and choose the result you want to export or use next.
Load a matched pair of examples into both sides at once.
Added means only in B. Removed means only in A.
Drop a CSV here, paste rows, or try the example.
Your original data is not changed by previewing.
Added means only in B. Removed means only in A.
Drop a CSV here, paste rows, or try the example.
Your original data is not changed by previewing.
Use row position when the sequence carries meaning, or choose one or more key columns in each table so reordered records still pair correctly. A csv comparator built only on line numbers cannot do this; the selected key must identify one record on each side.
Columns that exist in only one table are reported on their own. A new column never silently turns every shared row into a change, and a result with no value differences still shows any column changes and the comparison scope.
Repeated and blank keys are flagged with their source record numbers before the final comparison. Records are never silently paired by order, kept only at the first occurrence, or deleted.
Exact text is the default, so 001 stays different from 1 and 5.00 stays different from 5. Optional case and whitespace rules change how values are compared, not the values you download.
Download a comparison report, or continue with added records, removed records, changed records before or after, unchanged records, a cell-difference table, or a column-structure report. Empty subsets show zero rows.
Choose a CSV file or paste text for each side. File A is the baseline and File B is the comparison; added means only in B and removed means only in A. Review each input's delimiter, header row, and encoding before matching records. You can swap the two sides at any time.
Match by row position or choose key columns in both tables. Several columns can form a composite key when one column is not enough, and the combined values must uniquely identify each record under the selected key rules.
Confirm the column mapping and choose the fields to compare. Unmapped columns align by exact header name when both tables have headers; you can add explicit pairs or ignore a column. Exact text is the default, with optional case and whitespace rules.
Check added, removed, changed, and unchanged records, then review column changes and the comparison scope. A partial sample is not a completed comparison of the full inputs, and a canceled operation creates no final result.
Download the report, or select a data subset such as added records or the changed version from B. A difference report and a table of source records are different outputs, so choose the one the next task needs.
Two exports of the same table often arrive with the rows in a different order. A plain csv diff treats every shifted line as an edit, so the first question when you compare csv files is not what changed but which record on the left is the same record on the right. Matching by row position answers that with line numbers; matching by key columns answers it with a stable identifier.
Line-based comparison pairs the first line of one file with the first line of the other, then the second with the second, and so on. Insert one record near the top and every later pair shifts, which looks like a full rewrite even though the data did not change. A csv comparator that only pairs line numbers cannot tell a reorder from an edit. Choosing key columns instead lets records find each other by their identifier, so a different row order no longer creates false differences.
Position is still the right choice when the sequence itself carries meaning, such as a fixed-format export with a defined record order. It is the wrong choice when two systems write the same rows in different sequences. This setting is a decision about identity, not a display preference.
To compare csv files for differences, add both tables, confirm the delimiter, header row and encoding of each side, choose how records match, align the columns, then run the full comparison and read the result in place.
This csv compare tool shows the rules and scope it used, because a result only means something within those choices. When you compare csv files online, check the privacy and processing notes on this page rather than assuming how the data is handled.
A key must identify one record on each side. If a key is duplicated or blank, the tool blocks the final comparison and shows the affected source record numbers instead of guessing. Some tools compare only the first occurrence or pair records by order within a group, which can silently match the wrong rows. Add more key columns to form a composite key, correct the source where appropriate, or choose position matching deliberately. Deleting duplicate rows is not automatically correct, because repeated identifiers may be legitimate detail records.
When you compare two csv files based on column values rather than a single identifier, the combined key must still be unique under the selected key rules. If the key itself changes, the result reports one A-only and one B-only record rather than assuming an entity was renamed.
Yes, but it is reported separately from value changes. Columns present on only one side are listed on their own, so a new field does not turn every shared row into a change. When you compare csv headers across exports from different systems, a rearranged column is not a value difference either. A result with no changed values therefore does not mean the two schemas are the same.
No. Exact text is the default, so 001 stays different from 1 and 5.00 stays different from 5. Use exact text when you compare csv cells containing identifiers, account numbers or date-like strings that a spreadsheet might reinterpret. If a difference should not matter for your task, choose an explicit supported rule: ignoring letter case or leading and trailing whitespace changes how values are judged, not the values themselves, and neither input is silently cleaned or reformatted. You can compare two csv exports with different formatting conventions without losing the original text.
The main result is a side-by-side table you read on this page, so you can see exactly which cells differ without leaving the tool. If you need a file, the comparison report is a secondary download with old and new values and record positions. A report and an aligned table are different things, and neither replaces your source data. Formal outputs also go to the workspace, where a selected dataset can continue into a later task. Comparing does not merge tables, delete records or apply updates to either input.
Not necessarily. The result covers the selected columns, the chosen matching mode and the comparison rules; it is not a byte-for-byte check of encoding, byte order marks, quoting or formatting. Ignored columns and columns present on only one side are outside that scope. Comparison is also a different task from merging, joining or removing duplicates: merge appends rows, join links tables by key into a new table, and deduplication deletes records under a retention rule. Fuzzy or semantic matching is not offered here, and ignoring letter case is not the same as finding similar names.
Rendering a sample, indexing keys, comparing all values and writing a report are different workloads. Work within the tested processing range shown by the tool and check the completion status: a sampled preview is not evidence that every record was compared, and a canceled or incomplete operation produces no final result.
You can inspect either input in CSV Viewer, browse the combine and compare tools, or review the session in the workspace. If a source workbook is Apple Numbers rather than CSV, convert it with Numbers to CSV before comparing. Whether you compare two csv files online once or repeat the same check each week, keep one clear question per run and state which side is the baseline. In an online csv compare workflow, the rule and the scope are part of the answer, not a hidden default.