Column Compare
搜索:
Left (左侧)
Right (右侧)
Left: 1 Right: 1 Match: 1 Changed: 0 Left Only: 0 Right Only: 0
仅左侧 / 差集A-B (0)
-
仅右侧 / 差集B-A (0)
-
值变化 (0)
-
交集 (1)
并集 (1)
补集 (0)
-

Column Compare

Compare two columns, find differences

Runs locally · Nothing uploaded

Overview

An online two-column comparison tool for finding the differences between two lists. Paste each list into the left and right panels and it instantly computes left-only items (A-B), right-only items (B-A), matches on both sides, the deduplicated union, the complement, and changed values, showing them in six categorized result cards. It is handy for reconciling two columns in a spreadsheet, diffing config entries between environments, checking which fields an API added or removed, and cleaning up duplicates. Everything runs locally in your browser and no data is uploaded to a server.

Features

  • Compare two columns line by line and spot differences instantly
  • Six result cards: left-only, right-only, changed, intersection, union, complement
  • Multiple modes: line compare, dedupe, Key=Value, JSON, CSV
  • Ignore case, whitespace and empty lines; optional regex matching
  • Swap sides, dedupe results and sort ascending with one click
  • Paste, upload a file, or drag and drop text directly
  • Search and copy results, export CSV, or export Excel with one sheet per category
  • Runs entirely in your browser — nothing is uploaded

How It Works

  1. 1 Paste the two columns into the left and right inputs (one item per line), or upload / drag a text file into either panel
  2. 2 Choose a comparison mode: line compare for row-by-row diffs, dedupe to clean up repeats, Key=Value to compare key/value pairs, JSON or CSV for structured data
  3. 3 Enable options such as ignore case, trim leading and trailing spaces or ignore empty lines so formatting noise does not affect the result
  4. 4 The tool compares in real time and groups the output into left-only, right-only, changed values, intersection, union and complement with counts and details
  5. 5 Use the search box to filter results, click Copy for a specific category, or export the whole comparison as CSV

Tips

  • Normalize formatting first (for example trim spaces) to avoid false differences between values that look identical
  • When reconciling lists, check the left-only and right-only cards first — that is where the real differences are
  • Key=Value mode is ideal for environment variables, config files and API fields: it shows exactly which value changed
  • Export to Excel (one sheet per category) or CSV to share the comparison with colleagues or keep it for the record

Related tools

Tags CompareDiffData

FAQ

What can the two-column comparison tool do?

It compares any two lists of line-based text and works out which items appear only on the left, only on the right, on both sides, plus changed values for Key=Value and CSV data. It also reports the intersection, union and complement — useful for reconciling lists, config entries, field inventories and spreadsheet columns.

Can I compare two columns from Excel?

Yes. Copy each column from Excel and paste it into the left and right inputs (one item per line). For CSV data you can also upload or drag the file in and use CSV mode.

What do difference, intersection, union and complement mean here?

Difference A-B is what appears only on the left; B-A is what appears only on the right. The intersection is what both sides share, the union is everything combined and deduplicated, and the complement is the right side relative to the left (another view of B-A).

Is my data uploaded anywhere?

No. All comparisons run locally in your browser. Nothing is uploaded or stored on a server, and the data disappears when you close the page, so it is safe for internal lists and configuration data.

Do duplicate lines affect the result?

Deduplication of results is enabled by default, so repeated lines appear once. Uncheck it if you want duplicates counted, and enable ignore empty lines to keep blank lines from showing up as differences.

Does the Excel export put each result on its own sheet?

Yes. The Excel export has one worksheet per category: Summary, Left Only, Right Only, Changed, Intersection, Union and Complement. CSV is a single-table format, so all categories go into one file distinguished by the Type column — use Excel when you need separate sheets.