You pasted your list into a deduplicator, ran it, and got a result that still contains repeats. Two entries look exactly the same. Another pair differs only by a capital letter. A third pair is the same item written two slightly different ways. It feels like the tool missed them, but it usually did exactly what it was told: the lines left behind are not duplicates under the rules it was given.

This guide explains the three traps that leave apparent duplicates in a cleaned list, and which setting fixes each one, using the free Remove Duplicate Lines on Ovatly, which returns each line once, in the order it first appeared.

Contents

  • Quick answer
  • What the tool counts as a duplicate
  • Trap 1: invisible spaces
  • Trap 2: capital letters
  • Trap 3: lines that are similar, not the same
  • How to diagnose and fix your list, step by step
  • Worked example: cleaning a five-line list
  • Limitations and honest notes
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Open Remove Duplicate Lines and check the two rules. With trimming on, which is the default, lines that differ only in leading or trailing spaces count as duplicates. The case rule decides the second trap: set it so Apple and apple count as the same line, and only the first version survives. Whatever still repeats after both rules are set is the third trap: lines that are similar but not identical, such as a singular and a plural, which no setting merges and which need your judgement.

What the tool counts as a duplicate

The tool compares whole lines. Anything between two line breaks is one line, and Windows, Mac and Unix line endings are all recognized, so a list copied from a spreadsheet, an email or a text file is read the same way.

When a line repeats, the first occurrence wins: its exact spelling and capitalization are kept, and every later repeat is dropped. The result reports how many duplicates were removed, your first diagnostic clue: if the count is lower than the repeats you can see, some of them are not exact repeats at all.

Blank lines are treated as lines too: a run of blank lines collapses to a single blank line. Gaps that remain are single blanks that were always there.

Trap 1: invisible spaces

The most common trap is the one you cannot see. A line copied from a spreadsheet cell or a padded text file often carries a trailing space, or starts with one. On screen, apple and apple look identical. As text, they are different lines.

This is what the trimming rule is for. With trimming on, lines that differ only in leading or trailing spaces count as duplicates and the repeat is removed. Trimming is on by default, so this trap usually springs only when someone turned it off for an earlier job, or when the difference sits inside the line: a double space between two words is part of the line, and trimming does not reach it. The fix is to turn trimming on, run the list again, and compare the removed count: if it rises, spaces were your problem.

Trap 2: capital letters

The second trap is capitalization. One source writes Apple, another writes apple, a third writes APPLE. To a person these are obviously the same entry. To a line comparison, they are three different lines until a rule says otherwise.

That rule is the case setting: whether Apple and apple count as the same line. Set it so they do, and the three versions collapse into one. The first occurrence rule decides the survivor: the first version in your paste is kept with its exact spelling and capitalization, and the later ones are dropped. So paste order matters: put the correctly capitalized source first, and let the messier versions be the ones removed.

Leave the rule the other way when capitalization carries meaning, for example in a list of codes where case is part of the entry. The point is that the setting, not the tool, decides whether your capital-letter pairs are duplicates.

Trap 3: lines that are similar, not the same

The third trap has no setting, because the lines involved are genuinely different lines. A singular next to a plural. The same two words in the opposite order. One entry with a trailing word the other lacks.

The tool works line by line and compares lines, not meanings. It cannot know that two similar lines refer to the same thing, and it will not guess. Both stay. This is deliberate: an automatic merge of near-identical lines would eventually delete an entry you wanted to keep.

The honest workflow is to let the tool clear the exact repeats first, then read the shorter list that remains with these pairs in mind.

How to diagnose and fix your list, step by step

  1. Open Remove Duplicate Lines and paste your list, one item per line.
  2. Run it once with the default settings and note the count of duplicates removed.
  3. Turn trimming on if it is off, and set the case rule to treat capitalization variants as the same line, unless case carries meaning in your entries.
  4. Run it again and compare the count: a higher count means the traps were spaces or case, now fixed.
  5. Read the remaining list for similar-but-different pairs and merge those by hand.
  6. Copy or download the unique lines.

Worked example: cleaning a five-line list

The tool's own example is a five-line list:

apple
banana
apple
Cherry
banana

With the default settings, the result is:

apple
banana
Cherry

The report reads: 2 duplicates removed out of 5 lines. The second apple and the second banana were exact repeats, so they went. Cherry stayed with its capital C kept, because the first occurrence wins.

Now imagine the same list arriving from two sources, so the second banana carries a trailing space and the second apple is written Apple. With trimming on, the spaced banana is still removed. The Apple line survives only if the case rule treats it as a different line; set the rule so capitalization variants count as the same line, and it is removed too, with the first, lowercase apple kept. Same list, same tool, different outcome, decided by the two rules.

Limitations and honest notes

The tool removes repeated lines; it does not tidy the content of the lines themselves, and it does not sort: there is no sorting built in, so the result keeps your original order of first appearance. For alphabetical order, sort the cleaned result afterwards as a separate step.

It also works strictly line by line: duplicates inside a paragraph are not compared and stay untouched. Lists are handled locally on your device, comfortably up to hundreds of thousands of lines, so size is rarely the reason a repeat survives.

Common mistakes

  • Judging by eye. Lines that look the same on screen can differ by a space or a capital. Trust the removed count, then hunt the difference.
  • Turning trimming off and forgetting. Space variants start surviving again on the next list you paste.
  • Pasting the messy source first. The first occurrence wins with its exact spelling kept, so a badly capitalized first source sets the spelling for the whole list.
  • Expecting near duplicates to merge. A singular and a plural are different lines. No rule merges them, by design.
  • Looking for duplicates inside paragraphs. The comparison is line by line; repeated sentences inside one line are out of scope.

FAQs

Why do two lines that look identical both survive? Because they are not identical. The usual hidden difference is a leading or trailing space, which only counts as the same line when trimming is on (it is on by default), or a capital letter, which only merges when the case rule treats Apple and apple as the same line.

Which copy is kept when the case rule merges Apple and apple? The first occurrence wins. Its exact spelling and capitalization are kept, and the later repeat is dropped, so the version you paste first is the version that survives.

Why are a singular and a plural, or the same words in a different order, still in my list? They are different lines. The tool removes repeated lines, line by line, under the two rules. It does not compare meaning or similarity, so near-identical lines both stay and need a human decision.

Does it sort the result? No. The output keeps the original order of first appearance. If you also want sorting, run the result through the Sort Lines Tool afterwards.

Can it remove duplicates inside a paragraph? No, it works line by line. Sentences inside one line are not compared with each other, so repeated sentences inside a paragraph stay untouched.

Conclusion

A cleaned list that still shows repeats is usually a settings story, not a broken tool: spaces handled by trimming, capitals handled by the case rule, and genuinely different lines left for you on purpose. Set the two rules in Remove Duplicate Lines, let the first occurrence rule keep your best spelling, and finish with a short similarity pass. The same two rules do the heavy lifting in a common merge job, covered in the related guide: How to Remove Duplicate Keywords From an SEO List. More text workflows live in the Text and Writing Tools archive.