Alojamento Web

This list comparison tool allows you to compare two lists (arrays) to be able you analyze the difference between the two lists. The program receives lists of the type string or number and after starting the comparison it is possible to sort the results.

Inputs

Input data structure

Input data type

Toggle layout view

List A

List B

Handle data as

Output data separetad by

Results

Set: A minus B

Only in list A

A diff B
Set: B minus A

Only in list B

B diff A
Set: A intersection B

Common items (A ∩ B)

Intersection ​​between A and B
Set: A union B

All items (A ∪ B)

Union of values ​​between A and B
Set: Symmetric diference between A and B

Exclusive items (A △ B)

Symmetric difference between A and B

Tips for Better Results

  • Paste clean text without extra spaces.
  • Use “set” mode to ignore duplicates.
  • Use “list” mode to include repeated items.

How does the Compare Two Lists tool work?

It will function normally according to the rules of the sets, in Mathematics. However, in this tool, you can also choose the list option, so that it is possible to work with repeated values. The following operations are performed:

Set: A minus B

A minus B

Returns the values ​​that are present only in list A.

Set: B minus A

B minus A

Returns the values ​​that are present only in list B.

Set: A intersection B

A intersection B

They are represented by the values ​​that occur simultaneously in the two lists.

Set: A union B

A union B

They are represented by all the values ​​present in both lists.

Set: Symmetric diference between A and B

Symmetric difference

The symmetric difference of two sets is the set of elements that are in one of the sets, but not at its intersection.

Important note

There is no limitation on the maximum number of rows allowed in a list, however, if you put in too large a volume of data, the browser may slow down or even crash for a moment.


FAQ about this Comparison List Tool

Can I compare lists with numbers?
Yes. Just switch the “Data Type” option to Number before clicking Compare Lists.
What is the maximum list size?
There is no fixed limit. However, very large lists (thousands of lines) may slow down your browser temporarily.
Does this tool store my data?
No. All processing happens locally in your browser — your data never leaves your device.
Can I find duplicate items between two lists?
Yes. Use the Common items (A ∩ B) section to see all items that appear in both lists — these are your duplicates.
Is the comparison case sensitive?
Yes. The comparison is case sensitive, meaning “Apple” and “apple” are treated as different items.
What is the difference between Union and Symmetric Difference?
Union (A ∪ B) shows all unique items from both lists combined. Symmetric Difference (A △ B) shows items that appear in either list, but not in both — the unique items from each list.

List comparison is a recurring task among professional programmers and students. If you want some new feature for this Compare Two Lists tool, let me know in the comments area. Also, tell me if you found some bug, that I can fix it as soon as possible.

You can learn about how this online list tool works or contribute improving the it by programming some new feature or fixing bugs. For that, go to Github on Github >> Compare Two Lists and make a pull request. This will be great!