TinyCSV LogoTinyCSV

Compare CSV Files Online

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.

Last updated

Load a matched pair of examples into both sides at once.

File A — baseline

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.

File B — comparison

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.

Key Features

Match by position or by key

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.

See structure and values separately

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.

Block ambiguous keys instead of guessing

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.

Keep the original values

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.

Choose the output you actually need

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.

How to Use

  1. 1

    Add both tables

    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.

  2. 2

    Choose how records match

    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.

  3. 3

    Align columns and set 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.

  4. 4

    Review the complete result

    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.

  5. 5

    Export or continue with a selected dataset

    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.

What changed between two CSV exports

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.

Why does a text diff show every row as changed?

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.

How to compare two csv files for differences

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.

  1. Add both inputs. File A is the baseline and File B is the comparison. Added means only in B and removed means only in A; neither label proves a real-world insert or delete.
  2. Choose the match. Use row position when order is meaningful, or one or more key columns when each record has a stable identifier.
  3. Align columns and set rules. Columns align by exact header name; you can pair columns explicitly or leave one out. Exact text is the default, with optional case and whitespace rules that affect the decision but never rewrite a value.
  4. Read the result in place. Records are aligned on one row with both A and B values side by side. Changed cells are highlighted and marked with a dot and a text label, and counts for added, removed, changed, unchanged and changed cells appear above the table.

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.

What if there is no unique ID?

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.

Does a new column count as a difference?

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.

Does comparing turn 001 into 1?

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.

Can I get only the rows that changed?

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.

Does 'no differences found' mean the files are identical?

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.

Large files, previews and canceled runs

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.

Frequently Asked Questions

How to compare two csv files for differences?

Add both inputs, choose position or key matching, and confirm the column mapping. The tool aligns records on one row with A and B values side by side and marks changed cells with a dot and a text label. Counts for added, removed, changed, unchanged and changed cells appear above the table, and column changes are reported separately.

How to compare csv files from two different exports?

Check each input's delimiter, header row and encoding, then align the columns and choose a matching mode. Look at the column-structure summary first so you know which fields are shared before you judge any value change.

How to compare two csv files online when the row order changed?

Choose key columns instead of row position, then confirm the parsing options for each side. Records are matched by their identifier, so a reorder does not appear as a set of edits. Check the completion status and the privacy notes on this page before relying on the result; a sampled preview is not a full comparison.

Does row order matter when I compare csv files online?

It matters in position mode. In key mode, records match by the selected key instead of their location, so reordering alone does not create a value difference. An inserted row in position mode can shift later matches, which the result states explicitly.

What if the key column has duplicates or blank values?

The tool blocks the final comparison and shows the affected source record numbers instead of guessing. Add key columns, correct the source where appropriate, or choose position matching deliberately. Records are not silently deleted or paired.

How to compare two csv files based on column when the keys differ?

Choose corresponding key columns in both tables. Several columns can form a composite key when one column is not enough. The combined values must uniquely identify each record under the selected key rules.

Can I compare csv headers that appear in a different order or only on one side?

Columns align by exact header name when both tables have headers, so a rearranged column is not a value change. Columns present on only one side are reported separately. No value differences in the shared fields does not mean the schemas are identical.

Does comparing change 001 into 1?

No. Exact text is the default, so 001 stays different from 1 and 5.00 stays different from 5. Optional rules about letter case or leading and trailing whitespace change how values are judged, never the values you can review or download.

Can I ignore capitalization or extra spaces?

Use the supported comparison rules to ignore letter case or leading and trailing whitespace. Original values are preserved. Key rules are separate, because changing them can change which records match and create new conflicts.

Can I get only the rows that changed?

The side-by-side result marks every changed cell in place, so you can see the difference without leaving the tool. The comparison report is a secondary download with old and new values and record positions; if you need original rows for a later task, a changed-records subset is also available from the workspace.

Are two files identical if no differences are found?

Not necessarily. The result describes the selected columns and rules, and column changes are reported separately. It is not a byte-for-byte file identity check and does not cover ignored columns or formatting.

Is comparing the same as merging CSV files or removing duplicates?

No. Comparison describes relationships and differences between two inputs. Merge appends rows, join links tables by key into a new table, and removing duplicates deletes records under an explicit retention rule. Decide which task you need before choosing an output.

Can I compare large CSV files?

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 operation does not produce a final result.

Is this csv diff tool free, and are files uploaded?

Check the tool's privacy and processing notes for the current free, registration, and local-processing details. Do not assume a comparison result means a file was uploaded; review how this page reads your data before relying on it.

Can I find similar names or fuzzy matches?

This page covers defined position and key matching only. It does not offer spelling approximation, semantic entity resolution, or auto-correction. Ignoring letter case is not the same as fuzzy matching.