1
OneClickUse
Text Tool

Compare Two Lists Online

Find differences, shared items and a combined list. Paste lists or import text files, adjust matching rules, then copy or download the results.

Runs locally in your browser
Privacy-first workflows
Fast and simple
100% Free, no signup

Paste two lists. Results update as you type.

0 unique · 0 duplicates
Split
0 unique · 0 duplicates
Split
Comparison & output options

Blank lines are ignored. Each group contains unique items. Output formatting keeps your input lists intact.

Lists are compared locally in this browser. List contents are never uploaded.

Comparison results

A Only

0 items

Items in List A that are missing from List B.

A ∩ B (In Both)

0 items

Items shared by both lists, using List A’s spelling.

B Only

0 items

Items in List B that are missing from List A.

A ∪ B (All Items)

0 items

Every unique item from both lists combined.

Written by Anil Gautam · Updated

What do the four list results mean?

A Only is the set difference A − B: entries in your first list that the second list does not contain. B Only is the reverse difference B − A. In Both is the intersection A ∩ B. All Items is the union A ∪ B, containing each distinct matching value once.

For List A = Apple, Banana, Cherry and List B = Banana, Date: A Only contains Apple and Cherry; In Both contains Banana; B Only contains Date; All Items contains Apple, Banana, Cherry and Date. Item order does not affect which group a value belongs to.

Compare Excel columns, email lists or product IDs

Copy one column from Excel or Google Sheets into each input. Each nonempty line becomes an item. This helps find missing SKUs, reconcile user IDs, compare two URL inventories or combine mailing lists without duplicates.

Start with case-sensitive matching for identifiers. Turn it off when uppercase and lowercase should match. Ignore leading zeros only when 007 and 7 represent the same identifier; keep it off for codes where zeros matter.

Matching and formatting are separate

The comparison preserves the first spelling of each matching value. Shared values use List A's spelling. Output sorting and case conversion change the result display without rewriting the inputs. Cleanup buttons deliberately edit the selected input.

CSV and TSV imports do not select spreadsheet columns or parse quoted CSV cells. Splitting replaces a chosen literal separator with line breaks. File imports are limited to 5 MB; large pasted lists may take longer to render. Use Text Diff for changes in document order or wording.

How it works

How to compare two lists online

STEP 01
Paste one item per line into List A and List B, or upload a TXT, CSV, TSV or JSON array file. CSV and TSV files are read as text; use Split when needed.
STEP 02
Adjust case sensitivity, surrounding spaces, repeated spaces or leading zeros to match your data.
STEP 03
Review A Only, In Both, B Only and All Items. Empty lines and duplicate matching values are excluded.
STEP 04
Choose sorting, output case and a format, then copy, download or send a result to another tool.
You might also need

Related tools

Text
Text Diff Checker Online
Compare text or text files line by line. See additions and removals in side-by-side or unified view, ignore case or spaces, and download a diff report.
Use now
Text
Remove Duplicate Lines
Remove repeated lines from text while keeping the first occurrence.
Use now
Text
Sort Lines Alphabetically
Sort lines ascending or descending with natural-number ordering and dedupe.
Use now
Text
Find and Replace
Find exact text and replace it throughout your input.
Use now
Text
Duplicate Item Counter
Count how many times each line or list item appears.
Use now
Text
Case Converter
Convert text to uppercase, lowercase, title case, sentence case, camelCase, or snake_case.
Use now
FAQ

Common questions