AI Tools Free

List Difference Tool

Paste List A and List B into the List Difference Tool below to extract items unique to List A (A - B), items unique to List B (B - A), symmetric differences, and overlapping items.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Compare Lists.

First set of lines or identifiers.

Second set of lines or identifiers to compare against List A.

Choose whether uppercase and lowercase letters should be treated as distinct.

Strip accidental spaces before comparing lines.

Your result
Enter your details

Result will appear here

How List Difference Tool works

The List Difference Tool normalizes both line-separated inputs according to your whitespace and case rules, builds hash sets in memory, and partitions every unique entry into Only in A, Only in B, or Shared.

A \ B = {x in A : x not in B}; B \ A = {x in B : x not in A}; Symmetric Diff = (A \ B) U (B \ A).

Preserves the original line order from each source list so exported diffs are easy to trace back to your spreadsheet or log file.

List Difference Tool workflow overview
Workflow overview for List Difference Tool.

List Difference Tool Quick Reference & Input Guide

Review the input parameters, allowed value ranges, and worked reference cases for the List Difference Tool below before running your calculation.

Parameter / ScenarioDefault / Sample ValueRule or Allowed RangeOutput / Usage Note
Input: List A (one item per line)apple banana cherry date figFirst set of lines or identifiers.Required workspace parameter
Input: List B (one item per line)banana date grape kiwiSecond set of lines or identifiers to compare against List A.Required workspace parameter
Input: Case sensitivitysensitiveOptions: Case-sensitive (Apple != apple), Case-insensitive (Apple == apple)Required workspace parameter
Input: Whitespace handlingyesOptions: Trim leading/trailing spaces & ignore blank lines, Keep exact whitespace on non-empty linesRequired workspace parameter
Worked Case 1: Default fruit list check (5 items in A vs. 4 items in B)Preloaded / test valuesOnly in A = Unique(A) \ Unique(B); Only in B = Unique(B) \ Unique(A); Symmetric Difference = (A \ B) U (B \ A)Comparing [apple, banana, cherry, date, fig] against [banana, date, grape, kiwi] yields 3 items only in A (apple, cherry, fig), 2 items only in B (grape, kiwi), and 2 shared items (banana, date).
Worked Case 2: Case-insensitive SKU or email auditPreloaded / test valuesOnly in A = Unique(A) \ Unique(B); Only in B = Unique(B) \ Unique(A); Symmetric Difference = (A \ B) U (B \ A)Switching to Case-insensitive mode matches 'User@Example.com' in List A with 'user@example.com' in List B so formatting differences do not trigger false missing-item alerts.

How to use List Difference Tool step by step

Paste two column exports, SKU lists, email lists, or config keys to audit what was added or removed.

Paste List A and List B

Enter one item per line in the List A and List B text boxes.

List Difference Tool step 1: Paste List A and List B
Step 1 workflow overview for List Difference Tool.

Choose case and whitespace matching rules

Select Case-sensitive or Case-insensitive matching and decide whether to trim leading and trailing spaces.

List Difference Tool step 2: Choose case and whitespace matching rules
Step 2 workflow overview for List Difference Tool.

Run Compare Lists and export the diff

Click Compare Lists to view counts for A - B, B - A, and shared items, then copy or download the partitioned report.

List Difference Tool step 3: Run Compare Lists and export the diff
Step 3 workflow overview for List Difference Tool.

Worked examples for List Difference Tool

See how set difference comparisons isolate missing records across two lists.

Default fruit list check (5 items in A vs. 4 items in B)

Comparing [apple, banana, cherry, date, fig] against [banana, date, grape, kiwi] yields 3 items only in A (apple, cherry, fig), 2 items only in B (grape, kiwi), and 2 shared items (banana, date).

List Difference Tool example 1: Default fruit list check (5 items in A vs. 4 items in B)
Worked example 1 for List Difference Tool.

Case-insensitive SKU or email audit

Switching to Case-insensitive mode matches 'User@Example.com' in List A with 'user@example.com' in List B so formatting differences do not trigger false missing-item alerts.

List Difference Tool example 2: Case-insensitive SKU or email audit
Worked example 2 for List Difference Tool.

Trim trailing spaces from spreadsheet copy-paste

Enabling whitespace trimming removes invisible trailing spaces or tabs copied from CSV or Excel cells before running the comparison.

List Difference Tool example 3: Trim trailing spaces from spreadsheet copy-paste
Worked example 3 for List Difference Tool.

How to interpret the List Difference Tool output

Use the four summary counts and partitioned text output to verify migrations, inventory syncs, or access lists.

Think of List A as your baseline (or 'before' state) and List B as your target (or 'after' state). Under that convention, Only in A (A - B) represents removed or missing items, Only in B (B - A) represents newly added items, and Shared (A n B) represents unchanged items.

How to interpret List Difference Tool results
Result interpretation guide for List Difference Tool.

Input limits, assumptions, and related tools

Verify line delimiters and internal duplicates before importing the diff into another system.

This tool splits input on newline characters (LF or CRLF) and treats each non-empty line as one atomic string. If you only need overlapping items or want to merge two lists into one deduplicated master list, use the List Intersection Tool or List Union Tool.

Scope limits and assumptions for List Difference Tool
Assumptions and input boundaries for List Difference Tool.

List Difference Tool: common questions

Answers about using List Difference Tool and understanding its results.

What is the difference between A minus B and B minus A?

A minus B (A \ B) contains every unique item present in List A that does not appear anywhere in List B. Conversely, B minus A (B \ A) contains items present in List B that are missing from List A.

How does the List Difference Tool handle duplicate lines inside the same list?

It deduplicates each input list while preserving the order of first appearance, then computes set differences across the unique sets and reports how many internal duplicates were present.

Does case-insensitive mode change the output casing?

In case-insensitive mode, items are matched using lowercase keys, while the output preserves the original casing of the first occurrence in that list.

Is my list data uploaded to any external server?

No. All list parsing and set operations run locally in your browser via JavaScript, and you can copy or download the full comparison report as a text file.

Try your own values

Choose another tool for your next calculation, conversion, or text task.

Compare Lists