Remove Duplicate Lines
Clean up email lists, keywords, product codes and any other list by keeping each line only once. The first copy stays in its original place, and you can ignore differences in capitals and spaces, show only the repeats, or count how often each line appears.
How to Remove Duplicate Lines
Quick answer: paste your list with one item per line; duplicates are removed straight away and the status shows how many were found.
-
1
Paste your list
One item per line.
-
2
Choose how to match
Ignore capitals and spaces, or not.
-
3
Pick what to show
Unique lines, only repeats or counts.
-
4
Copy or download
Use the clean list anywhere.
What You Get
Why Remove Duplicates?
Duplicates creep into every list: email addresses collected from several forms, keywords gathered from different tools, product codes from merged spreadsheets, and names copied more than once. They lead to double emails, wrong totals and messy reports. This tool removes them in a second while keeping the first copy of each line exactly where it was.
How Lines Are Matched
By default, "Paris", "paris" and " paris " count as the same line, because capitals and stray spaces usually do not make an entry different. Tick Capital letters matter when case is important, for example with codes or passwords, and untick ignore spaces when leading spaces matter, as in indented code.
The status line under the result tells you how many duplicate lines were removed, so you can see at a glance how clean the original list was.
Only Repeats and Counts
Only repeats lists the lines that appear more than once, which is useful for finding double bookings, repeated orders or copy-paste mistakes. With counts shows each unique line with the number of times it appeared, separated by a tab, so you can paste it into a spreadsheet and sort by the count. Afterwards, Sort Lines puts the clean list in order.
Example
You combine three sign-up sheets into one list of 1,250 email addresses. Paste them here and the status shows "312 duplicate lines removed", leaving 938 unique addresses in their original order, ready to import into your mailing tool without sending anyone the same message twice.
Who Removes Duplicate Lines?
Email marketers merging subscriber lists, SEO writers combining keyword lists from several sources, shop owners cleaning product codes and stock lists, teachers merging class lists, researchers removing repeated entries from data, and developers cleaning logs and lists of values. Anyone who combines lists from more than one place ends up with duplicates, and removing them by hand is slow and unreliable.
Tips
For email addresses, keep capital letters off so addresses that differ only in capitals count as the same. For codes and passwords, where capitals matter, turn case-sensitive matching on. After removing duplicates, sort the list with Sort Lines to make it easy to scan, or use With counts to see which entries were repeated most often.
Good to Know
Only whole lines are compared: two lines are duplicates when they match completely, after ignoring capitals and outer spaces if those options are on. Words that repeat inside different lines are not affected. The first time a line appears, it is kept in its original position; later copies are removed, so the order of your list does not change. The status line shows exactly how many duplicates were found. Very long lists of hundreds of thousands of lines are handled quickly because each line is checked only once.
Need the list in order as well? Press Use as input and then open Sort Lines.
Private, Free and Instant
The tool is free and handles lists with hundreds of thousands of lines. There is no sign-up, no limit and no watermark. The conversion runs entirely inside your browser, so your text is never uploaded, stored or shared, which makes the tool safe for emails, contracts, student work and anything confidential. It works the same on Windows, Mac, Linux, Chromebooks, iPhone and Android, and the result updates instantly as you type or paste. You can also open a text file from your device and download the converted text as a new .txt file.
Cleaning Lists: Removing Repeated Lines
Lists collect repeats: email addresses pasted twice, keywords exported from several sources, log lines from loops. Removing duplicates leaves each line once, in its first position.
Choices that matter
- Case: decide whether Apple and apple count as the same line.
- Spaces: trailing spaces make identical-looking lines different; trim them first.
- Order: keeping the first occurrence preserves your original order, while sorting groups the lines.
Combine it with sort lines to compare two lists easily.
After cleaning, count the lines to confirm how many repeats were removed.
Frequently Asked Questions
Questions about removing duplicate lines