Worked example: a shopping list typed by two people
The list has seven lines: Milk, eggs, Bread, milk, “ Eggs ” (with spaces), Butter and bread. With the default settings (capitals ignored, spaces at the ends ignored) the result is Milk, eggs, Bread, Butter: 3 duplicates removed, and each item keeps the spelling it had the first time. With “Capitals matter” ticked and spaces counted, nothing matches exactly, so no lines are removed. Choosing “Last copy” instead gives milk, Eggs, Butter, bread, because each item moves to where it last appeared.
How lines are compared
- Capitals: ignored unless you tick the box. Letters with accents are compared as they are, so “café” and “cafe” stay separate.
- Spaces: “Ignore at ends” trims spaces and tabs at the start and end of each line, the usual leftovers from copying out of spreadsheets. “Ignore extra” also treats several spaces inside a line as one.
- Blank lines are never treated as duplicates of each other; they are kept where they are unless you choose to remove them.
- The kept line is always written exactly as it was, even when capitals or spaces were ignored to compare it.
Where duplicate lines come from
Joining two exports, pasting from several pages of results, or merging sign-up sheets from different events all repeat entries. Duplicates cause double e-mails to the same customer, inflated counts in reports and wasted rows in imports. The list of repeated lines under the result shows which items appeared more than once and how many times, which is often the first thing you want to know about a messy list.
Tips for clean lists
For long lists, sort them first with the line sorter so near-duplicates such as “Acme Inc” and “Acme Inc.” sit next to each other, then fix them by hand. For lists of names or e-mail addresses in a CSV file, keep only the column you need before pasting, because a line only counts as a duplicate when the whole line matches. Use find and replace to remove trailing full stops or “www.” before you remove duplicates.
Common jobs it does in seconds
- Mailing lists: merge sign-ups from a website form, a shop and an event, then remove the addresses that appear twice before importing them into your e-mail service, so nobody gets the newsletter twice.
- Keyword research: combine keyword exports from several tools and keep each phrase once, with capitals ignored.
- Log files: collapse repeated warning lines to see which different messages a program actually wrote, and how often each one appeared.
- Inventory and SKU lists: find product codes that were entered twice before a stock count.
- Guest and attendee lists: spot people who registered more than once, using the list of repeated lines.
Because only whole lines are compared, the order of the remaining lines never changes: the result is your list with the extra copies taken out, not a re-sorted list.
Related tools
Sources
Checked on November 26, 2026:
- Microsoft Support: filter for unique values or remove duplicate values in Excel
- The Unicode Standard, ch. 5.8: newline guidelines (line separators)
Frequently asked questions
How do I remove duplicate lines from a list?
Does it treat “Apple” and “apple” as the same?
What is the difference between keeping the first and the last copy?
Can I remove duplicate e-mail addresses?
How do I remove duplicates in Excel instead?
Is my list uploaded?
Last updated: 2026-11-26