List comparator

Paste one list on each side, one item per line. The tool treats each list as a set and shows the items in both, the items only in the first, the items only in the second and every distinct item of the two together. Nothing leaves your browser.

List A has 4 distinct items, list B has 4, and 2 are in both.

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Put one list in box A and one in box B, one item per line. Two short lists are filled in to show the layout.
  2. Choose whether to ignore case and whether to trim spaces around each item.
  3. Read the four result boxes and press Copy under the one you need. Swap exchanges the two lists.

How it works

Both lists are split into lines, trimmed if you chose to, and reduced to their distinct items. An item is “in both” when the other list has an item that matches it exactly, or ignoring case when that option is on. “Only in A” is the set difference A minus B, and “only in B” is B minus A. The combined list has each distinct item once.

Worked example

List A is apple, banana, cherry, date and list B is banana, cherry, elderberry, fig. Both lists have banana and cherry. Only A has apple and date. Only B has elderberry and fig. All six distinct items together are apple, banana, cherry, date, elderberry and fig.

Tips

To compare spreadsheet columns, copy a column and paste it straight in: each cell is a line. If two lists look the same but show differences, check for trailing spaces and keep trimming on. To compare whole texts line by line with changes marked, use the text diff tool instead.

Frequently asked questions

How are duplicates inside one list treated?

Each list is read as a set, so an item repeated in the same list counts once. The first spelling you typed is the one shown in the results.

In what order are the results listed?

Items in both lists and items only in the first list keep the order of the first list. Items only in the second list keep the order of the second list. The combined list is the first list followed by the items only in the second.

Are blank lines compared?

No. Empty lines, and lines with only spaces, are skipped, so a trailing line break does not create an empty item.

What does ignoring case do?

With it on, "Apple" and "apple" are the same item and the first spelling is kept. With it off, they are two different items.

More in Text

All tools in this category: Text ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.