TTKTheTextKit

List Comparison Tool

Paste one list in each box, with one item per line or separated by commas. The tool shows four results: the items only in list A, the items only in list B, the items in both lists and the items in either list. You can ignore upper and lower case and the spaces around an item, skip empty items and sort the results. Each result has a copy button, and a summary counts the items. Everything runs in your browser.

A has 4 items (4 different). B has 4 items (4 different). 2 in both, 6 in all.

2 items

2 items

2 items

6 items

Each item is shown once, in the spelling where it first appears, and an item that repeats inside one list is counted once in the different-items figure. An item is in both lists when its text matches, after the case and the spaces around it are ignored if you leave those boxes ticked. Letters with accents match whichever way they are written. Use the comma option for a list copied from a sentence or a spreadsheet cell. Everything runs in your browser and nothing you paste is uploaded.

Related Tools

[5 suggestions]

About the List Comparison Tool

Comparing two lists is a set operation. The items in both lists are the intersection, the items in either are the union, and the items in only one list are the differences. With A as apple, banana, cherry, fig and B as Banana, cherry, date, elderberry, the items only in A are apple and fig, the items only in B are date and elderberry, the items in both are banana and cherry, and the union has 6 items. Case is ignored by default, so Banana matches banana, and an item is shown once, in the spelling where it first appears. Spaces around an item are cut off, and empty lines are skipped, so a list copied from a spreadsheet or an email matches cleanly. Items that repeat inside one list count once in the different-items figure. Accented letters match whichever way they are written. Use the comma option for a list that was copied from a sentence, and the sort option to put the results in order. It is useful for checking a mailing list against an unsubscribe list, finding the files that were added or removed, comparing two sets of keywords, or matching two lists of names.

How do I compare two lists?▾

Paste one list in each box. The tool shows the items only in the first list, only in the second, in both and in either. With apple, banana and cherry against banana, cherry and date, the items in both are banana and cherry.

How do I find the items in one list but not the other?▾

Look at the Only in A and Only in B boxes. Only in A holds the items of the first list that the second list does not have, and Only in B holds the reverse. Copy either box with its button.

Does it ignore case and spaces?▾

Yes, by default. Banana matches banana, and spaces around an item are cut off before the match. Untick the boxes if upper and lower case or spaces should count as differences.

What happens to duplicates?▾

An item that repeats is shown once, in the spelling where it first appears. The summary gives the number of items and the number of different items in each list, so you can see how many repeats there were.

Are my lists uploaded?▾

No. The lists are compared in your browser and nothing you paste is sent anywhere.