How to remove duplicate lines
- Paste your list, one item per line: email addresses, product codes, URLs, names, keywords. Insert example loads a small list.
- Choose what to keep. The default removes later copies and keeps the first of each line.
- Set the comparison: tick Ignore capital letters if Apple and apple are the same item, and Ignore spaces if stray spaces made equal lines look different.
- Copy the result or download it as a .txt file. The numbers under the result show how many lines came in and went out.
Example: the same list, four ways
The input list:
apple Banana apple cherry banana cherry date
| Setting | Result (lines joined with ·) |
|---|---|
| Keep first, case matters | apple · Banana · cherry · banana · (empty line) · date |
| Keep first, ignore case | apple · Banana · cherry · (empty line) · date |
| Only lines that repeat | apple · Banana · cherry |
| Only lines that appear once, no empty lines | date |
With case ignored, 8 lines in become 5 lines out, and 3 different items repeat.
Keep the first or the last duplicate
Which copy survives matters when the order carries meaning. A log of orders, a changelog or an export where the newest entry is last usually needs keep the last: the final occurrence of each line stays, in its original position.
order-1001 order-1002 order-1001 order-1003 order-1002
order-1001 order-1003 order-1002
For plain lists of names or keywords, keeping the first is the usual choice and preserves the order you pasted.
Find the lines that repeat, or that never do
The two filter options turn the tool into a quick audit. Show only the lines that repeat lists each repeated line once, which finds duplicate IDs, double entries or the keywords you used twice. Show only the lines that appear once does the opposite and drops anything that has a twin. To compare two separate lists rather than one, use text compare.
Why duplicates survive, and how to fix it
- Trailing spaces or tabs: apple and apple are different lines. Keep Ignore spaces ticked.
- Different capitalization: tick Ignore capital letters.
- Invisible differences: non-breaking spaces and accents that look alike (é typed as one character or as e plus an accent) do not match. Run the text through find and replace to normalize them first.
- Extra blank lines: blank lines are compared like any other line, so only the first one survives. Tick Remove empty lines to drop them all.
Need the cleaned list in order? Send it on to sort lines, which can also remove duplicates while it sorts.
Common jobs for a duplicate-line remover
- Email and contact lists: merge exports from two tools, tick Ignore capital letters (addresses are case-insensitive in practice) and keep one copy of each.
- Keyword lists: combine lists from several research tools and drop the repeats before you group them.
- URL and file lists: find pages listed twice in a sitemap export or an audit.
- Log and data files: list the distinct values of a column you pasted as lines, or use the repeats filter to see which value occurs more than once.
- Shopping and to-do lists: merge lists from several people without double entries.
Big lists are fine: the tool compares lines through a hash lookup, not by checking every pair, so doubling the list roughly doubles the time rather than quadrupling it. Only the first 250,000 characters are shown in the result box, while Copy and Download give you everything.
Related tools
- Sort lines – sort the cleaned list A to Z, by number or at random
- Find and replace
- Text compare – see exactly which lines differ between two texts
- Remove line breaks
Remove duplicate lines FAQ
How do I remove duplicate lines from a list?
Paste the list into the box, one item per line. With the default setting the first copy of each line is kept and the rest are removed. Copy the result or download it.
Does it keep the original order?
Yes. Lines stay in the order you pasted them. Choose keep the last if the final occurrence should survive instead of the first.
Can it ignore upper and lower case?
Yes. Tick Ignore capital letters and Apple, APPLE and apple count as the same line. The first copy is kept as you typed it.
Why are some duplicates not removed?
Usually an invisible difference: a trailing space, a tab, a different capitalization or a look-alike character. Keep Ignore spaces ticked and try Ignore capital letters.
Can I see only the duplicates?
Yes. Choose Show only the lines that repeat. You get one copy of each line that appears more than once. The last option shows lines that appear only once.
Is there a limit on list size?
There is no fixed limit. Lists of hundreds of thousands of lines are processed in a moment; the result box shows the first 250,000 characters while Copy and Download use everything.
Is my list uploaded anywhere?
No. Everything runs in your browser, so email lists and customer data are not sent to a server or stored.