Compare Two Lists

Paste two lists of keywords, emails, SKUs, or names to instantly see which items appear in both lists, which are unique to List A or List B, and the combined deduplicated list.

In Both (Matches)
0
Only in List A
0
Only in List B
0
Combined Unique
0
In Both Lists
Combined Unique (A ∪ B)
Only in List A
Only in List B

Runs entirely in your browser. Nothing you enter is uploaded or stored.

Rate this tool

Be the first to rate this tool

How to use the Compare Two Lists

  1. Paste your first list into List A and your second list into List B, one item per line.
  2. Choose whether to ignore uppercase/lowercase differences, trim trailing spaces, or sort the outputs.
  3. View live counts for matches, A-only items, B-only items, and combined unique items.
  4. Click Copy on any of the four result boxes to grab the exact subset you need.

Four Set Operations at a Glance

Comparing two spreadsheets or text files manually is slow and error-prone. This tool automatically runs four set comparisons every time you edit either list:

  • In Both Lists (Intersection): Items present in both List A and List B.
  • Only in List A: Items missing from List B (great for spotting unsubscribed emails or removed inventory SKUs).
  • Only in List B: Brand-new additions that were not in List A.
  • Combined Unique (Union): A merged master list with all duplicates removed.

Common Everyday Uses

SEO teams compare keyword exports, marketers clean suppression lists before sending campaigns, and developers check environment variables or package lists across deployments. Everything runs locally in your browser with zero server uploads.

Examples

  • List A: apple, banana, cherry | List B: banana, cherry, date
  • In Both: banana, cherry | Only in A: apple | Only in B: date.

Compare Two Lists FAQ

Are duplicate lines inside the same list removed automatically?

Yes. Each list is deduplicated before comparison so counts reflect unique items accurately.

What does Ignore case do?

When checked, "Apple" in List A and "apple" in List B are treated as a match rather than two separate items.

How large can my lists be?

Because it uses hash-map lookups in JavaScript, comparing 50,000+ lines completes in a fraction of a second inside your browser.

Is my data private?

Yes. No text is sent to any server; all comparisons happen locally on your device.

Related tools

All Developer Tools
JSON Formatter & ValidatorBeautify, minify and validate JSON with clear error messages.Base64 Encode / DecodeEncode or decode Base64 for text and files, UTF-8 safe.Cron Expression GeneratorBuild cron schedules with simple menus, or paste any cron expression to explain it in plain English and see the next 5 run times.Diff CheckerCompare two texts and see every added, removed and changed line, with word or character highlights, side by side or unified.HEX to RGB ConverterConvert HEX color codes to RGB, RGBA and HSL and back, with a live swatch, color picker, alpha control and copy-ready CSS.JSON to CSVConvert a JSON array to CSV with nested objects flattened into dot-named columns, comma, semicolon or tab delimiters and a live preview.JSON to ExcelConvert a JSON array to a real Excel .xlsx spreadsheet or CSV, with nested objects flattened into dot-named columns and a live preview.PX to REM ConverterConvert pixels (px) to rem and rem to px with custom root font size and CSS table.Regex TesterTest JavaScript regular expressions live: highlighted matches, capture and named groups, indices, flags and a replace preview.Unix Timestamp ConverterSee the current Unix epoch time live, convert timestamps in seconds, milliseconds or microseconds to dates, and dates back to timestamps.URL Decode & EncodeDecode or encode URLs and query strings (percent-encoding), with + as space option and a query parameter table.Text to Slug ConverterTurn titles into clean, SEO-friendly URL slugs.Meme GeneratorAdd top and bottom text to any photo and download your meme as a PNG.