Duplicate lines are the most common dirt in any list. Merge two exports, collect names from three colleagues, paste the same source twice on different days, and repeats slip in at every seam — invisible in a long list, and exactly the kind of thing that produces two invitation emails, two orders, two entries in a draw. Removing them by eye is reliable up to about twenty lines and a fantasy beyond that. This tool does it properly: paste the list, press one button, and every line that appears more than once is reduced to its first appearance, with a plain count of how much was removed.
Two design decisions make the result trustworthy. First, the order never changes. The tool is a filter, not a sorter: the first copy of each line stays in its original position, so a list that was arranged by date, priority or simple preference keeps that arrangement. If you want alphabetical order as well, sort the cleaned output afterwards — cleaning first, sorting second gives the tidiest result. Second, the case setting is yours to choose. By default, comparison ignores capitals, because in most lists "Apple" and "apple" are the same entry typed inconsistently. For codes, passwords and usernames, where capitals are meaningful, tick case-sensitive and only exact matches are removed.
Worked example: the fruit list above
The sample list has 7 lines: apples, bananas, apples, oranges, bananas, grapes, apples. Press the button and the stats line reports "7 lines in · 4 unique lines out · 3 duplicates removed". The output is apples, bananas, oranges, grapes — the first appearance of each fruit, in the order they first occurred. "Apples" appeared three times, so two copies were removed; "bananas" appeared twice, so one was removed; that accounts for all 3 duplicates. Now tick case-sensitive and add a line reading "Apples" with a capital A: with the box ticked it counts as a brand-new line and survives, while unticked it is treated as a fourth copy of "apples" and removed. Same list, two correct answers — the setting exists because only you know which one your data needs.
Clean lists import better
The moment a list is about to be used is the moment duplicates do their damage. Email tools charge by contacts and frown on double sends; a duplicated customer gets two messages and a slightly worse impression of your organisation. Spreadsheets sum duplicated rows into wrong totals. Draw and raffle tools happily give one person two chances. Even a humble printed checklist wastes paper and attention on repeats. A ten-second pass through this tool before any of those jobs removes the entire category of error, and the removed-count tells you something useful about your source data: a list that sheds 30% of its lines was merged carelessly, and the next merge deserves a closer look. For the companion checks, our line counter shows how many non-empty lines you truly have before and after cleaning.
The near-duplicates that get away
Exact duplicates are the easy half of the problem. The entries that survive every cleanup are the near-duplicates: "J. Smith" and "John Smith", the same email address typed once with a capital and once without, a line that picked up a trailing space in one export but not the other. No honest tool can merge those automatically, because only a person who knows the data can say whether two similar lines are one record or two. What this tool does is clear the exact repeats out of the way — usually the large majority — so the handful of judgement calls left behind are few enough to review by eye. A good routine is to clean first, then sort the result alphabetically: near-duplicates end up on neighbouring lines, where a quick scan spots almost all of them. Clean, sort, scan — three passes, and a list is as trustworthy as it can reasonably be made.
Frequently asked questions
How does this tool decide two lines are duplicates?
By default it compares lines ignoring capitalisation, so "Apple", "apple" and "APPLE" count as the same line and only the first version is kept. Tick "Case-sensitive" if capitals should make lines different — important for passwords, codes and usernames, where "Pass" and "pass" are genuinely different entries.
Does it keep the original order of my list?
Yes. The first copy of each line stays exactly where it was, and later repeats are removed. Your list is never re-sorted or rearranged — if you also want alphabetical order, run the result through our sort lines tool afterwards.
Which copy of a repeated line is kept?
The first one, with its original spelling and capitalisation. If a list contains "BANANA" first and "banana" later, the output keeps "BANANA". This matters when the earliest entry is the correctly formatted one, as it usually is.
What about lines that differ only by spaces?
Lines are compared exactly as written (apart from capitals, unless case-sensitive is on). A line with a trailing space is technically different from the same line without one, so near-identical entries with stray spaces may both survive. If that happens, the stray whitespace is the culprit — it is invisible, but very common in copied data.
Can I remove duplicate lines from a file?
Yes — open the file, select all the text, copy it and paste it into the box, then press the button. Copy the cleaned result back, or use "Use result as input" to run it through again. Everything happens in your browser, so private lists stay private.
Why do duplicate lines appear in lists so often?
Usually because lists are merged: two exports combined, a form submitted twice, names collected from several people, or the same source pasted in on different days. Duplicates creep in at every join, which is why cleaning a list right before you use it — not when you create it — is the reliable habit.
Does it remove duplicate words inside a line?
No — this tool works on whole lines, not words within a line. A line reading "the the" is a single unique line and will be kept as it is. Whole-line deduplication is what lists, records and data files need; repeated words inside sentences are an editing job.
How many lines can I clean at once?
There is no fixed limit. The work happens on your own device, so lists of tens of thousands of lines clean in a moment; truly enormous files may take a few seconds on a slow phone, but ordinary lists are instant.
Is this duplicate line remover free and private?
Yes. It is completely free with no sign-up, and your text never leaves your device — the cleaning happens entirely in your browser, so customer lists, email lists and other private data are safe to process.