Small SEO Tools

How to Find Tags Shared by Two Plain Text Lists

To find tags shared by two editorial lists, first remove repeats within each source. Then combine those distinct outputs and keep the repeated labels. This lets the Duplicate Line Remover identify the overlap through three separate runs.

Keep the two source lists separate

Save both originals. Use one complete tag per line, with no list headings inside the copied text. These examples use exact capitalization and ordinary ASCII text.

List A

Image editing
Writing
Image editing
Accessibility
Developer tools
Writing

List B

Writing
Performance
Accessibility
Email
Email

Image editing repeats only in A, and Email repeats only in B. Neither belongs in the shared result. The desired overlap is Writing and Accessibility.

Remove repeats from each source first

  1. Paste List A into Paste your list, one item per line.
  2. Leave Ignore case and Trim whitespace before comparing unchecked.
  3. Keep Ignore blank lines checked.
  4. Leave Sort result A-Z and Keep only the duplicates unchecked.
  5. Select Remove Duplicates and save the four-line output separately.
  6. Replace the input with List B, keep the same options and run again. Save its four-line output separately.

Each cleaned source now records membership once per tag. This follows the distinct-items idea described in the Python set reference. Keep the saved outputs associated with their source names, without adding those names as extra lines.

Combine the cleaned outputs and keep duplicates

Put the cleaned A output first, followed immediately by the cleaned B output, with one tag per line. For this example, the combined input is:

Image editing
Writing
Accessibility
Developer tools
Writing
Performance
Accessibility
Email

Keep the previous matching options. Check Keep only the duplicates, then select Remove Duplicates. The result is:

Writing
Accessibility

Expect 8 Lines in, 6 Unique lines, 2 Duplicates removed and 2 Lines out. The six unique lines describe the distinct tags across the combined input. The two output lines are the shared tags.

This result is an intersection, containing entries present in both sources. The MDN intersection reference explains that membership rule. With sorting off, this workflow retains their order from List A.

Check the result against both originals

Locate every returned tag in each original list before copying the result. If you had combined the raw lists and used duplicates-only mode immediately, the output would also include Image editing and Email. Their repeats within one source would incorrectly look like shared membership.

Keep the matching rules consistent across all three runs. With case matching exact and trimming off, Writing, writing and Writing with a final space are different labels. Review intended spelling changes before rerunning the comparison.

Use this procedure for whole labels on separate lines. For other matching choices, consult the duplicate-removal settings guide. Keep the originals, the two cleaned lists and the final shared result together so you can review where each tag came from.