Remove Duplicate Lines keeps only the unique lines of your text and removes the repeated ones. Paste your lines, click the button and copy the result. It is free and runs in your browser.
This is line 1 This is line 2 This is line 3 Hello Hello
This is line 1 This is line 2 This is line 3 Hello
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool keeps only the unique lines of your text and removes every repeated line. The first copy of each line is kept, and the lines stay in their original order.
A line is removed when the same line appeared anywhere above it, even if other lines come in between. By default case and spaces count, so Hello and hello are different. Tick Ignore case or Ignore spaces at the start and end of lines to compare more loosely.
Use it to clean up lists of names, emails, URLs or keywords, to tidy log files, or to merge lists without repeats.
Each example shows the lines before and after. Both options are off unless the example says otherwise.
| Case | Before | After |
|---|---|---|
| Example | This is line 1 This is line 2 This is line 3 Hello Hello | This is line 1 This is line 2 This is line 3 Hello |
| Duplicates that are not next to each other | apple banana apple cherry banana | apple banana cherry |
| Case matters (option off) | Hello hello HELLO | Hello hello HELLO |
| Ignore case (option on) | Hello hello HELLO | Hello |
| Ignore spaces at line ends (option on) | a a a | a |
| Empty lines | x y x | x y |
| No duplicates | one two | one two |
Cleaning lists of names, emails, URLs and keywords, tidying log files, and merging lists without repeats.
Put one item on each line. The first copy of a line is kept. Case and spaces count unless you tick the options. Repeated empty lines are reduced to one. The result replaces your text, so use Undo if you need the original.
To remove repeated words try Remove Duplicate Words. To remove empty lines try Remove Empty Lines. To sort the lines try Alphabetical Sort.
It keeps only the unique lines of your text and removes every repeated line. The first time a line appears it is kept, and later copies are removed.
Paste your text, one item on each line, then click Remove Duplicate Lines. The unique lines stay in the box. Click Copy to use them, or Undo to go back.
The first one. Your lines stay in their original order, so only the later copies are removed.
Yes. A line is removed if the same line appeared anywhere above it, not only right above it.
By default yes, so Hello and hello are different lines. Tick Ignore case to treat them as the same line.
By default they count, so a and a with a space after it are different lines. Tick Ignore spaces at the start and end of lines to compare lines without those spaces.
An empty line is a line like any other, so repeated empty lines are reduced to one. To remove all empty lines use Remove Empty Lines.
Your text is left as it is and you see the message No duplicate lines found.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 10 November 2026