So sánh danh sách & tìm phần tử chung

So sánh hai danh sách từng dòng để tìm phần tử chung (giao), chỉ có ở A, chỉ có ở B và hợp không trùng lặp.

A: 6 lines (5 unique) · B: 5 lines (5 unique)
Common (A ∩ B) — 3

Giới thiệu So sánh danh sách & tìm phần tử chung — Hướng dẫn chi tiết

Danh mục: Xử lý văn bản 100% xử lý cục bộ trên trình duyệt

The List Compare & Set Operations tool analyzes two line-separated lists side by side to extract common items (intersection A ∩ B), items exclusive to List A (A − B), items exclusive to List B (B − A), the deduplicated union (A ∪ B), and the symmetric difference (A △ B).

Designed for developers, SEO analysts, and operations teams working with email lists, SKU catalogs, server allowlists, and keyword exports, it supports whitespace trimming, case-insensitive comparison, alphabetical sorting, and instant TXT/CSV export—all locally in the browser.

#list #compare #diff #intersection #union #deduplicate #set

Tính năng và khả năng nổi bật

  • Instant calculation of Intersection (A ∩ B), Only in A (A − B), Only in B (B − A), Unique Union (A ∪ B), and Symmetric Difference (A △ B)
  • Flexible matching controls: ignore letter case, trim leading/trailing whitespace, and sort output alphabetically
  • Live item counters showing raw line counts, unique counts per list, and exact counts for every set view
  • One-click list swap, copy result, and download as TXT or CSV with 100% browser-side privacy

Cách sử dụng

  1. 1

    Paste your first dataset into List A and your second dataset into List B (one entry per line).

  2. 2

    Toggle Ignore Case, Trim Spaces, or Sort A–Z depending on how strictly items should be matched.

  3. 3

    Switch between Intersection, Only in A, Only in B, Unique Union, or Symmetric Diff tabs and copy or export the result.

Trường hợp sử dụng phổ biến

  • → Finding overlapping or newly added URLs, keywords, and backlink domains between two SEO crawls
  • → Reconciling customer email lists, allowlists, or e-commerce SKU inventories between two spreadsheets
  • → Comparing environment variable keys, package dependencies, or database IDs across staging and production

Công cụ liên quan

Câu hỏi thường gặp và quyền riêng tư

How is List Compare different from a line-by-line text diff tool?

A text diff checks sequential line edits and order changes, whereas List Compare treats each input as an unordered mathematical set so you can instantly extract common items, missing items, and unique unions regardless of row order.

Does it automatically remove duplicate entries inside List A or List B?

Yes. Set operations deduplicate each list internally while displaying both the original line count and the unique item count in the header badges.

Is it safe to compare confidential email lists or customer IDs?

Yes. All comparisons execute locally in JavaScript memory inside your browser; zero lines are transmitted over the network.