Two lists of the same things rarely agree. One came from last month's export, the other from a colleague's spreadsheet. Put together they overlap: some entries in both, some in only one, and the overlap is the part you cannot see by looking. Merging them by hand means searching for every entry from the second list inside the first, hundreds of small lookups with a mistake rate to match.

There is a simpler shape to the job. A merged list with each entry once is just one long list with the duplicates removed, and the overlap between two lists is just duplicates that happen to sit far apart. This guide merges two lists with the free Remove Duplicate Lines tool on Ovatly, and explains the one idea that decides the result: the first occurrence of every line wins.

Contents

  • Quick answer
  • Why merging by hand goes wrong
  • What decides which copy survives
  • How to merge two lists, step by step
  • Worked example: two short lists, one merge
  • Choosing the two rules for a merge
  • Limitations and honest notes
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Paste your first list into the tool, then paste the second list directly underneath it in the same box, so the two form one list with one entry per line. Set the two rules, whether Apple and apple count as the same line and whether surrounding spaces are ignored, then run it. The tool keeps the first occurrence of each line and drops every later repeat, and it reports how many duplicates were removed. Because the first list sits above the second, its entries keep their spelling and their order, and the result ends with the entries only the second list had, in their original order.

Why merging by hand goes wrong

The overlap between two lists is invisible from inside either one. An entry can be present in both and look ordinary in each, so skimming finds nothing. Searching helps only if you search for every entry, one at a time, and spell it the same way both times, which is where hand merging breaks: the entry in the second list is capitalized differently, or carries a trailing space from the export, and the search sails past the match. The result still holds duplicates, discovered later by whoever receives the list.

What decides which copy survives

The rule is first occurrence wins. The tool keeps a line the first time it appears, with its exact spelling and capitalization, and drops every later repeat. In a merge, that rule has three consequences worth planning around.

First, order: the result is your first list in its order, followed by the new entries from the second list in theirs. Nothing is sorted or rearranged. Second, spelling: where the two lists write the same entry differently and the rules treat them as the same line, the first list's version is the one that survives. Third, trust: paste the more reliable list first. If one list is the carefully maintained original and the other is a rough export, the original goes on top, and its spellings become the merged list's spellings.

How to merge two lists, step by step

  1. Open Remove Duplicate Lines and paste your first list, one item per line.
  2. Click at the very end of the pasted text, make sure the cursor sits on a fresh line, and paste the second list underneath.
  3. Decide the rules: whether Apple and apple count as the same line, and whether surrounding spaces are ignored. Trimming is on by default; leave it on for a merge, because exports are generous with stray spaces.
  4. Read how many duplicates were removed above the result: the overlap, plus any repeats inside each list itself.
  5. Copy or download the unique lines. That is the merged list.

Worked example: two short lists, one merge

Say the first list, the one you trust, is:

apple
banana
Cherry

And the second list, from a rougher source, is:

banana
dates
Apple

Pasted together they form six lines. With the case rule set so Apple and apple count as the same line, the result is:

apple
banana
Cherry
dates

The report reads "2 duplicates removed out of 6 lines": banana repeated, and Apple matched apple. Note what survived. The merged list opens with the first list exactly as it was, capital C on Cherry included, and dates, the only new entry, arrives last. Apple did not replace apple; the first occurrence won.

Run the same merge with capitals treated as significant and the result changes in one place: Apple survives as a fifth line, because under that rule it was never a duplicate. Neither result is wrong. They are answers to two different questions about what counts as the same entry, which is why the rules are decided before the merge, not after it.

Choosing the two rules for a merge

The case rule matters most when the two lists come from different hands or different systems, because capitalization habits differ between sources even when the entries agree. Merging case-insensitively folds those pairs together and keeps the first list's spelling. Keep capitals significant when the capitals carry meaning, as they can in codes or identifiers where two entries differ only by case and are genuinely different.

The spaces rule is simpler: leave trimming on. Exports collect leading and trailing spaces invisibly, and without trimming, a line and its spaced twin both survive the merge as phantom duplicates.

Limitations and honest notes

The tool merges lines, not meanings. Entries that refer to the same thing in different words, or differ by punctuation, an extra word, or a singular and plural ending, are different lines and all survive; that is the near duplicate problem, settled by a sorted read-through after the merge. The tool does not sort, so if you want the merged list alphabetical, sorting is a separate step afterwards. It also works strictly line by line: anything that is not one entry per line, such as entries separated by commas on a single line, must be split into lines before merging. Blank lines count as lines, so a blank at the seam between the two lists survives as one blank line in the result; delete it by hand. On scale: lists of hundreds of thousands of lines are handled comfortably because the check runs locally on your device, and your lists are not uploaded.

Common mistakes

  • Pasting the rough list first. First occurrence wins, so the rough list's spellings become the merged list's spellings. Put the list you trust on top.
  • Letting the two lists fuse at the seam. If the first list does not end with a line break, its last entry and the second list's first entry land on one line and are treated as a single, new entry. Always start the second list on a fresh line.
  • Pasting the lists side by side. Two columns are not one list. The tool reads lines, so the second list must go below the first, never beside it.
  • Skipping the rules decision. The default settings suit most merges, but the case rule deserves ten seconds of thought whenever the two lists came from different sources.

FAQs

Which list should I paste first? The one whose spelling and order you trust more. The first occurrence of each line wins, so entries from the first list keep their exact spelling and position, and matching entries from the second list are dropped.

Does merging change the order of my entries? No. The result keeps the order of first appearance: your first list in its order, followed by the entries that only appear in the second list, in their order. The tool never sorts.

What happens if the same entry is written with different capitals in each list? That depends on the case rule. Set it so Apple and apple count as the same line and the second version is dropped. Leave capitals significant and both versions survive as separate lines.

Why is there a blank line in the middle of my merged list? Blank lines count as lines too. If a blank line sat at the end of the first list or the start of the second, it survives the merge, though a run of blank lines collapses to a single one. Delete it by hand if you do not want it.

Can I merge three or more lists the same way? Yes. Paste each list below the previous one in the same box, in the order you trust them, then run the tool once. First occurrence still wins across the whole combined list.

Conclusion

Merging two lists is deduplication with the lists stacked in trust order. Paste the list you trust first, the other beneath it, set the case and spaces rules, and the Remove Duplicate Lines tool returns one list where each entry appears once, spelled the way your better list spells it. What it cannot settle is entries that mean the same thing in different words; for that side of the problem, the companion guide below draws the exact line. The rest of the list utilities live in the Text and Writing Tools archive.

Related guide: Exact Duplicates vs Near Duplicates: What a Line Tool Can and Cannot Catch.