This tool removes repeated lines from a list. Paste one item per line, choose your options and get a clean list with the first copy of every line kept. It is useful for email lists, keyword lists, names, product codes and any text with repeated entries.
How to use Remove Duplicate Lines
- Paste your list into the box, with one item on each line.
- Choose whether to ignore letter case, trim spaces, remove empty lines and sort the result.
- Select Remove duplicates.
- Check the line counts, then select Copy result.
How it works
The tool reads each line in order and keeps it only if it has not been seen before. With “Ignore case” on, “Apple” and “apple” are treated as the same line, and the first one is kept. With trimming on, extra spaces at the start and end of a line are removed before lines are compared, so “Banana” and ” Banana” match.
Worked example
The list Apple, apple, Banana, Banana, Cherry, Apple (one per line) has 6 lines. With the default options, the result is Apple, apple, Banana, Cherry, which is 4 lines. With “Ignore case” on, the result is Apple, Banana, Cherry, which is 3 lines.
For more about cleaning up lists, read our guide How to Remove Duplicate Lines From a List.
Limits to know about
Lines are compared as whole lines, so “Apple pie” and “Apple” are different. Sorting uses your browser’s alphabetical order, which may treat accented letters and numbers differently from a spreadsheet. The tool runs in your browser, so your list is not sent to our servers, but very large lists of many thousands of lines may be slow on older phones.
Frequently asked questions
Which copy of a repeated line is kept?
The first one. Later copies are removed.
Can I remove blank lines too?
Yes. Leave “Remove empty lines” selected.
Is my list uploaded?
No. Everything happens in your browser.