Remove Duplicate Lines
Remove duplicate lines from your text quickly and easily.
Remove duplicate lines from your text quickly and easily.
This tool removes repeated lines from a list or block of text and keeps only the unique ones. It is helpful for cleaning email lists, keyword lists, names, URLs and data copied from spreadsheets or documents.
Yes. The first time a line appears it is kept, and later repeats are removed.
Yes. Lines that differ in capital letters or extra spaces are treated as different lines. Use the Case Converter first if you want them to match.
Paste a list with one item per line and press Remove Duplicates. The tool keeps the first occurrence of every line and deletes later repeats, while the original order is preserved. You can then copy the cleaned list.
A line is treated as a duplicate only when it matches exactly. The comparison is case-sensitive and includes spaces, so "Apple" and "apple", or "apple" and "apple " with a trailing space, count as different lines.
Input:
apple banana apple cherry banana
Output:
apple banana cherry
Yes. The first appearance of each line stays in its position.
Yes. Convert the text to one case first if you want case-insensitive matching.
It keeps one blank line if blank lines are present, since they are treated as identical. Remove extra blank lines by hand if needed.
Yes, within the limits of your browser. Thousands of lines are generally fine.