AI Tools Free

List Union Tool

Paste List A and List B into the List Union Tool below to combine both lists into one deduplicated master list (A U B), count removed duplicates, and export in first-seen or alphabetical order.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Merge & Deduplicate.

First list of items to merge.

Second list of items to append and deduplicate.

Control whether items differing only by letter case are merged.

Keep original appearance order or sort the merged union.

Your result
Enter your details

Result will appear here

How List Union Tool works

The List Union Tool scans List A and List B sequentially, strips empty lines and outer whitespace, and inserts each unique key into an ordered map while counting internal and cross-list duplicates.

|A U B| = |Unique(A)| + |Unique(B)| - |Unique(A) n Unique(B)|; Removed Duplicates = Raw Lines - |A U B|.

Provenance counters break down the final union into items contributed exclusively by List A, exclusively by List B, and shared by both.

List Union Tool workflow overview
Workflow overview for List Union Tool.

List Union Tool Quick Reference & Input Guide

Review the input parameters, allowed value ranges, and worked reference cases for the List Union Tool below before running your calculation.

Parameter / ScenarioDefault / Sample ValueRule or Allowed RangeOutput / Usage Note
Input: List Aalpha beta gamma betaFirst list of items to merge.Required workspace parameter
Input: List Bgamma delta epsilon alphaSecond list of items to append and deduplicate.Required workspace parameter
Input: Case sensitivitysensitiveOptions: Case-sensitive (Alpha != alpha), Case-insensitive (keep first-seen casing)Required workspace parameter
Input: Output orderingfirst_seenOptions: Preserve first-seen order (List A then List B), Sort A to Z (ascending), Sort Z to A (descending)Required workspace parameter
Worked Case 1: Baseline merge (4 lines in A + 4 lines in B -> 5 unique items)Preloaded / test valuesUnion = Unique(A U B); Duplicates Removed = (Raw Count A + Raw Count B) - |A U B|Combining List A [alpha, beta, gamma, beta] with List B [gamma, delta, epsilon, alpha] removes 3 duplicates (one internal 'beta' and two shared 'alpha'/'gamma' entries), producing [alpha, beta, gamma, delta, epsilon].
Worked Case 2: Appending net-new URLs while preserving baseline priorityPreloaded / test valuesUnion = Unique(A U B); Duplicates Removed = (Raw Count A + Raw Count B) - |A U B|With Output ordering set to First-seen, all unique URLs from your primary sitemap (List A) stay at the top in their original order, and only net-new URLs from List B are appended at the bottom.

How to use List Union Tool step by step

Combine mailing lists, URLs, hostnames, or product tags without manual spreadsheet deduplication.

Enter List A and List B lines

Paste your primary list into List A and the secondary list into List B, one entry per line.

List Union Tool step 1: Enter List A and List B lines
Step 1 workflow overview for List Union Tool.

Set case matching and sort order

Select Case-sensitive or Case-insensitive deduplication and choose First-seen, Ascending (A-Z), or Descending (Z-A) order.

List Union Tool step 2: Set case matching and sort order
Step 2 workflow overview for List Union Tool.

Merge and export the clean union

Click Merge & Deduplicate to inspect the total unique count, duplicates removed, and provenance breakdown, then copy or download the merged list.

List Union Tool step 3: Merge and export the clean union
Step 3 workflow overview for List Union Tool.

Worked examples for List Union Tool

Review how merging and deduplication work on overlapping lists.

Baseline merge (4 lines in A + 4 lines in B -> 5 unique items)

Combining List A [alpha, beta, gamma, beta] with List B [gamma, delta, epsilon, alpha] removes 3 duplicates (one internal 'beta' and two shared 'alpha'/'gamma' entries), producing [alpha, beta, gamma, delta, epsilon].

List Union Tool example 1: Baseline merge (4 lines in A + 4 lines in B -> 5 unique items)
Worked example 1 for List Union Tool.

Appending net-new URLs while preserving baseline priority

With Output ordering set to First-seen, all unique URLs from your primary sitemap (List A) stay at the top in their original order, and only net-new URLs from List B are appended at the bottom.

List Union Tool example 2: Appending net-new URLs while preserving baseline priority
Worked example 2 for List Union Tool.

Alphabetical master glossary consolidation

Switch Output ordering to Sort A to Z and Case-insensitive mode to merge two terminology lists into a clean, sorted glossary.

List Union Tool example 3: Alphabetical master glossary consolidation
Worked example 3 for List Union Tool.

How to interpret the List Union Tool output

Check the provenance counts to verify how many net-new items List B added to List A.

The total union count equals Unique(A) plus the 'Only in B' count. If 'Only in B' is 0, every item in List B was already present in List A. The text output box contains the clean merged items (one per line) followed by a summary header in the downloadable report.

How to interpret List Union Tool results
Result interpretation guide for List Union Tool.

Input limits, assumptions, and related tools

Confirm line breaks and case rules before exporting your merged list.

At least one of the two lists must contain non-empty lines. Leading and trailing spaces on each line are trimmed automatically. For isolating only overlapping items or only differences, use the List Intersection Tool or List Difference Tool.

Scope limits and assumptions for List Union Tool
Assumptions and input boundaries for List Union Tool.

List Union Tool: common questions

Answers about using List Union Tool and understanding its results.

How does the List Union Tool merge two lists?

It reads all non-empty lines from List A followed by List B, removes any duplicate entries based on your case-sensitivity setting, and outputs the combined set A U B.

Does it remove duplicates that exist inside List A itself?

Yes. Set union deduplicates both intra-list duplicates (such as 'beta' appearing twice in List A) and cross-list duplicates (items appearing in both List A and List B).

How is provenance tracked in the summary breakdown?

Each unique item in the union is classified as originating from List A only, List B only, or Both lists so you can see how much each source contributed to the merged master list.

Can I keep the exact order of List A and only append new items from List B?

Yes. Choose 'Preserve first-seen order (List A then List B)' in Output ordering to keep all unique List A items in their original sequence followed by net-new items from List B.

Try your own values

Choose another tool for your next calculation, conversion, or text task.

Merge & Deduplicate