The Remove Duplicate Lines tool deletes repeated lines from any list or text in one click. Paste email lists, keywords, names, URLs or word lists, and it keeps one copy of each line in the original order. You can ignore capital letters and extra spaces, remove empty lines, keep only unique lines or show just the duplicates.
It’s free, needs no sign-up and runs entirely in your browser, so your list is never uploaded.
Try an example:
How to Remove Duplicate Lines
- Paste your list into the box, with one item on each line. You can also press one of the example buttons.
- Choose what to keep. The default keeps one copy of each line in its original order.
- Check the options. By default, the tool ignores capital letters, trims extra spaces and removes empty lines.
- Press Remove duplicates. You’ll see how many lines went in, how many came out and how many were removed. The result updates automatically when you edit the list or change a setting.
- Press Copy result to copy the clean list, or Clear to start over.
What Each Setting Does
Here’s what happens to this list: apple, banana, Apple, cherry, banana (one item per line), with “Ignore capital letters” turned on.
| Setting | Result |
|---|---|
| Keep first | apple, banana, cherry |
| Keep last | Apple, cherry, banana |
| Only lines that appear once | cherry |
| Only the duplicated lines | apple, banana |
- Keep first keeps the first copy of each line and deletes later copies. This is what most people want.
- Keep last keeps the last copy instead, which is handy when newer entries are at the bottom of a list.
- Only lines that appear once drops every line that has a duplicate, so you see the true one-offs.
- Only the duplicated lines shows one copy of each repeated line, so you can find what was entered twice.
- Ignore capital letters treats “Apple” and “apple” as the same line. Turn it off to keep them both.
- Trim spaces removes spaces at the start and end of each line, so “cherry” and ” cherry” (with a space in front) match. Trimmed lines are shown without those spaces.
- Sort the result A to Z puts the clean list in alphabetical order, with numbers in natural order (2 before 10).
Common Uses
- Email and contact lists: remove repeated addresses before sending a newsletter or invitation. With “Ignore capital letters” on, Anna@Example.com and anna@example.com count as one.
- Keyword lists: clean up keyword research exported from several tools.
- Word lists: make a vocabulary or spelling list where each word appears once.
- URLs and IDs: spot product codes, order numbers or links that were pasted twice.
- Names: tidy a class roster, guest list or sign-up sheet.
Limits to Know About
- Whole lines only. The tool compares complete lines. It doesn’t find repeated words inside a sentence, and “red apple” and “apple” are different lines.
- Exact matching. Apart from capital letters and spaces at the ends, lines must match exactly. “colour” and “color” or “Bob” and “Robert” aren’t treated as duplicates.
- Spreadsheet rows. If you paste rows from a spreadsheet, each row is compared as one line. The tool can’t compare a single column.
- Up to 500,000 characters at a time.
Frequently Asked Questions
How do I remove duplicate lines from a list?
Paste your list above with one item per line and press Remove duplicates. Then press Copy result and paste the clean list wherever you need it.
Does it keep my list in the same order?
Yes. The lines stay in their original order unless you tick “Sort the result A to Z.”
Can I find the duplicates instead of deleting them?
Yes. Choose “Only the duplicated lines” to see each line that appears more than once.
Is it case sensitive?
Not by default. Untick “Ignore capital letters” if “Apple” and “apple” should count as different lines.
Is my list saved or uploaded?
No. Everything happens in your browser, and your list is never sent to a server.
Related Tools
- Alphabetical Order Sorter: sort your list A to Z, Z to A or by length.
- Word Frequency Counter: see how many times each word appears in your text.
- Case Converter: change text to UPPER CASE, lower case or Title Case.
- Browse all of our free word tools.