Developer Tools

List Intersection, Union, and Difference Calculator

Compute intersection, union, or difference for two text lists locally in your browser. Useful for roster compares, keyword crosses, and everyday data cleanup.

ListSet operations

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Find shared items between two rosters
  • Extract items that appear on only one side
  • Merge keyword lists with a union

How to use

  1. Enter one item per line in lists A and B
  2. Choose intersection, union, or difference
  3. Copy the result

Example input and output

Lists

A: apple,banana,cherry / B: banana,date

Intersection

banana

FAQ

Is comparison case-sensitive?

Yes. Matching is case-sensitive by default, and each line is one element.

Does it deduplicate automatically?

Set operations treat items as a set, so duplicates collapse. To deduplicate a single list only, use the remove-duplicate-lines tool.

Tools

Related tools

Continue with another translated tool for a nearby task.

Remove Duplicate Lines

Remove Duplicate Lines Online

Available

Remove duplicate lines from multiline text with options to ignore case, trim edges, keep first-seen order, and review frequency stats. Processing stays in your browser.

Text Deduplicate Cleanup

Text Diff Checker

Text Diff Checker for Line-by-Line Changes

Available

Compare two text blocks locally in your browser and mark added, removed, and unchanged lines. Useful for configs, copy review, and quick code-snippet diffs with instant results.

Diff Text compare

Sort Lines

Sort Lines Online

Available

Sort multiline text with dictionary order, natural (numeric-aware) order, length order, or shuffle. Optional reverse, case-insensitive compare, dedupe, and blank-line removal all run in your browser.

Text Sort Cleanup