Compare Two Lists

Find items only in A, only in B, and in both lists.

Also called: list diff, compare two columns, find differences between lists.

FreeNo sign-upRuns in your browser
TEXT & WRITING

Compare Two Lists

Find items only in A, only in B, and in both lists.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Compare Two Lists (15 seconds)

Recorded on a phone, steps written on screen, no sound. Open the video page.

About the Compare Two Lists

Paste two lists, one item per line, and see the items that are only in list A, only in list B and in both. It is a quick way to compare email lists, product codes, roll numbers or two Excel columns.

Spaces at the ends of lines are ignored, and you can ignore upper and lower case so “Ali” and “ali” count as the same item.

Nothing is uploaded. For differences inside text rather than lists, use Text Compare.

List comparison example

List A: Ali, Sara, Usman, Hina. List B: sara, Hina, Bilal.

With Ignore upper/lower case on, the result is: only in A, Ali and Usman; only in B, Bilal; in both, Sara and Hina.

How to use the Compare Two Lists

  1. Add your inputFill in list A and list B.
  2. Pick the optionsignore upper/lower case (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the Compare Two Lists gives for it (produced by the tool itself, not typed by hand).

List A
Ali Sara Bilal Hina
List B
Sara Hina Usman

Result:

Only in list A (2)
Ali
Bilal

Only in list B (1)
Usman

In both lists (2)
Sara
Hina

Good to know

What you need
You type or choose: List A, List B
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

How do I compare two Excel columns?

Copy each column into one box; each cell becomes one line.

Are duplicates counted?

Each item is compared once; duplicates within a list do not change the result.

Is the comparison case-sensitive?

Only if you leave “Ignore upper/lower case” unticked.

More tools in Text & Writing

See all Text & Writing tools