To remove duplicate lines, paste your list into the box with one item per line. The tool reads the list from top to bottom, keeps the first time each line appears and drops every later copy, so the original order is preserved. Options let you ignore letter case, ignore stray spaces and delete empty lines.
How to use the Remove Duplicate Lines
- Paste your listPut each item on its own line. Lists copied from a spreadsheet column already look like this.
- Choose what to keepKeep one copy of every line, show only the repeated lines, or show only the lines that appear once.
- Set the matching rulesTick the boxes to treat "Apple" and "apple" as the same line or to ignore extra spaces.
- Copy the clean listPress Copy. The note under the result tells you how many duplicate lines were found.
How the tool decides that two lines are duplicates
By default two lines are duplicates only when they are exactly the same, character for character, after spaces at the start and end are ignored. That last part matters more than you might expect: lists exported from spreadsheets and forms often carry invisible trailing spaces, so "anna@example.com" and "anna@example.com " look identical but would not match in a strict comparison.
Three options change the rule when you remove duplicate lines:
- Ignore upper and lower case treats "London", "LONDON" and "london" as one item. The first spelling in the list is the one that is kept.
- Ignore spaces at the start and end is on by default. Untick it for code or data where indentation is meaningful.
- Also remove empty lines deletes blank lines. When it is off, blank lines stay where they are and are not counted as duplicates of each other.
The order of your list never changes. If you also want it alphabetical, run the result through sort lines.
Three ways to use it
- Clean a list: the default setting gives you one copy of every line. Use it for mailing lists, keyword lists, product codes, tags and playlists.
- Find what is repeated: "Only the lines that are repeated" lists each duplicated item once. This is handy for auditing data: which order numbers were entered twice, which names signed up more than once.
- Find what is unique: "Only the lines that appear exactly once" removes every item that has a twin, leaving the one-offs.
A simple way to compare two lists is to paste both into the box, one after the other. The repeated lines are the items the lists share. For a line-by-line comparison that shows what was added and removed, use the text diff checker instead.
Your list is processed in your browser and is not uploaded, so it is fine to paste customer emails or internal data. Lists with tens of thousands of lines are handled in well under a second.
Frequently asked questions
How do I remove duplicate lines from a list?
Paste the list with one item per line and the cleaned list appears underneath. The first occurrence of each line is kept and all later copies are removed. Press Copy to take the result.
Does the tool change the order of my lines?
No. Lines stay in their original order and only the repeats are taken out. Use a sorting tool afterwards if you want the list in alphabetical order.
Why are some lines that look the same not removed?
They probably differ in capital letters, inner spacing or invisible characters. Tick "Ignore upper and lower case", and check for double spaces or tabs inside the lines.
Can I see which lines were duplicated?
Yes. Choose "Only the lines that are repeated" to get a list of every item that occurs more than once, each shown a single time.
Is there a limit on list size?
There is no set limit. The work is done on your device, and lists of 100,000 characters or tens of thousands of lines are processed almost instantly.
Last updated 24 November 2026 by the TheTechFolk team.