1. Home
  2. Compare
  3. Compare Two Columns

Compare Two Columns

Pick a column from each side and get a list of every value marked as “in both”, “only in A” or “only in B”.

01How to use it

  1. Add one file (to compare two of its columns) or two files.
  2. Choose column A and column B.
  3. Choose what to show: everything, only differences or only matches.
  4. Press Compare columns and download the list.

02What it is used for

  • Checking which email addresses from a new list are already in your database.
  • Finding invoice numbers that are in the bank export but not in the ledger.
  • Reconciling two versions of a product code list.

03Example

Before — lists.xlsx
After — Column comparison
ValueStatusCount in ACount in B
[email protected]In both11
[email protected]In both11
[email protected]Only in A10
[email protected]Only in A10
[email protected]Only in B01

Produced by this tool from the sample data.

04Supported formats

Input

  • XLSX
  • XLSM
  • XLSB
  • XLS
  • ODS
  • CSV
  • TSV
  • TXT

Output

  • XLSX
  • CSV

05How the data is processed

The file is opened by a background worker in your browser, so the page stays responsive and a long job can be cancelled. Each cell is kept with its type: text stays text, numbers stay numbers and dates stay dates. The original file is only read, never modified — the result is always a new download.

Excel workbooks are read with the open-source SheetJS library. For formula cells the tool uses the result that Excel stored in the file; formulas are not recalculated. Both the 1900 and the 1904 date systems are handled. Merged cells keep their value in the top-left cell, and hidden sheets are listed but not selected by default.

For CSV and text files the character encoding (UTF-8, UTF-16, Korean CP949, Japanese Shift_JIS, Chinese GB18030 and Big5, Western European and more) and the delimiter are detected automatically and can be changed by hand. Quoted fields with commas, quotes and line breaks are parsed according to the CSV standard. A value is turned into a number only when that loses nothing, so 00123 and long ID numbers stay text. A decimal read as a number does not keep zeros at its end (1.50 becomes 1.5); number detection can be switched off for each file.

Values are compared as they are displayed: 1.50 and 1.5 are equal, text is compared exactly unless you ask to ignore case or spaces. In key mode a lookup table of all keys is built first, which makes even large comparisons fast and independent of row order.

06Privacy

The tool above runs entirely in your browser. Your file is read from your disk by JavaScript on this device; it is not uploaded, and neither its contents nor its name are sent to us or to anyone else. There is no account and no server-side processing.

For that reason the tool is loaded in a separate frame from a different web address than this article. Advertising and other scripts on the page cannot look into that frame, and the frame itself is served with a security policy that blocks all outgoing connections. When you close or reload the tab, the data is gone from memory. Only workflows you choose to save are kept, in your browser’s own storage, and you can delete them at any time.

07File size and limits

  • There is no fixed upload limit because nothing is uploaded; the limit is the memory of your device. Measured on a desktop PC (Intel Core i5-14600KF, Windows 10, Microsoft Edge 158): a 100,000-row, 10-column CSV of 9 MB was read in about 1.1 seconds and written as a 14 MB XLSX in about 1.2 seconds. Laptops and phones are slower, often several times.
  • Excel workbooks up to about 50 MB and CSV files of a few hundred megabytes are practical. Workbooks larger than 150 MB and text files larger than 1 GB are refused so the tab does not crash.
  • An XLSX sheet can hold 1,048,576 rows and 16,384 columns. If a result is larger, download it as CSV or split it.
  • Password-protected workbooks cannot be opened. Macros are never run. Charts, images, pivot tables and cell styling are not carried into the output unless a tool says otherwise.
  • A CSV file holds plain text. When Microsoft Excel opens one it applies its own conversions: leading zeros disappear, long numbers turn into 1.23E+15 and some values become dates. That happens in Excel, not in the file — check the CSV in a text editor or in the CSV Viewer, and in Excel use Data → From Text/CSV and set such columns to Text.

08Questions and answers

Is the comparison case-sensitive?

Not by default: “[email protected]” and “[email protected]” count as the same value. Untick the option to compare exactly.

What do the count columns show?

How many times each value occurs on each side, which also reveals duplicates inside a single list.

Do blank cells count as a value?

No, empty cells are ignored.

Is it safe to use with confidential files?

The file is processed on your own device and is never uploaded. The tool runs in an isolated frame that is technically prevented from making network connections, so its contents cannot be sent anywhere — not to us and not to advertisers.

Related tools