Find Common Items
List the items that appear in both of two pasted lists.
What this page computes
Paste two lists and the page prints the items that appear in both, in the order of the first list. An item repeated in the first list is reported once, so the output is a set intersection rather than a count.
Where it stops
Matching is exact after trimming, so Apple and apple are different items and case is not folded. The second list must not be empty, because every answer would otherwise be nothing; the first list must also carry a line.
Why the answer repeats
The intersection is built with a Set in this tab, so the same two lists always print the same items and neither list leaves the browser.
Prints the items present in both pasted lists, in the order of the first, with an item repeated in the first list shown once. Matching is exact and case-sensitive; an empty second list is refused.
How to use it
Put one list in the box and the other in the second-list box, then press Run.
The arithmetic
A Set of the second list is built, then the first list is walked and each item that is in the set and not yet printed is emitted. That is why the output order follows the first list rather than either input's length.
What to Expect
Best for
- comparing a guest list with a reply list
- intersecting two tag lists
What this tool keeps
- the shared items and both list sizes
Sample input
apple / banana / cherry against banana / cherry / date
Sample output
banana cherry Common items = 2 (first list 3 item(s), second 3)
Frequently asked questions
How do I use the find common items page?
Paste the first list in the main box, the second in its own box, then press Run.
Is anything uploaded?
No. The whole calculation runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once it has loaded.
What are its limits or bounds?
Both lists must hold at least one non-blank line. Matching is exact and case-sensitive, so Apple and apple must be entered the same way to match.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.