Remove Duplicate Lines
Keep each line only once. Choose whether the first or the last copy of a repeated line stays, and the rest are removed from your list.
Paste a list and instantly delete repeated lines. Keep the first or last copy, ignore case, sort the result and copy it in one click. Fast, free and no signup.
We take full responsibility for your privacy. Your text and files are never stored.
Add your list or text, with one item on each line, or upload a text file.
Ignore case, trim spaces, remove empty lines, keep the first or last copy, or sort.
The cleaned list appears instantly. Copy it or download it as a text file.
Looking for a free duplicate line remover? Paste your text and the tool deletes every repeated line in a moment, leaving each line only once. You can ignore capital letters, trim extra spaces, remove empty lines, keep the first or the last copy of each line, and sort the result. You can also switch the tool around to show only the lines that are repeated, or only the lines that appear once. Everything runs in your browser, so your text is never uploaded, and there is no signup or watermark.
Keep each line only once. Choose whether the first or the last copy of a repeated line stays, and the rest are removed from your list.
Show only the lines that appear more than once, and open the report to see which lines are repeated most often and how many times.
Trim spaces, drop empty lines, and sort the result from A to Z, from Z to A, or by line length, all in the same step.
You do not need a spreadsheet or a script to remove duplicates from a list. Use the online duplicate line remover by following these simple steps.
The result updates automatically as you type or change an option. You can work with up to 2,000,000 characters at a time, and uploaded files can be up to 2 MB.
The tool compares whole lines, so each item should be on its own line. If your items are separated by commas or spaces, first replace the separators with line breaks, then remove the duplicates.
Our free duplicate line remover makes it easy to clean up a list in seconds. Paste your text, choose your options, and copy the result. The tool is designed for convenient text clean-up without signup or a watermark, and it works on desktop and on mobile browsers.
Find answers to common questions about removing duplicate lines and cleaning up lists.
Paste your text into the Your text box. With Remove duplicates selected, the Result box immediately shows your text with every repeated line removed. Click Copy result to copy it.
By default it keeps the first copy. Choose Last copy under Keep if you want the final occurrence of each repeated line to stay instead. This also changes where the line appears in the result.
Yes, by default. Apple and apple are different lines. Turn on Ignore case to treat them as the same line. The copy that is kept still appears exactly as you typed it.
Choose Only duplicates. The result then shows each line that appears more than once, one time each. Open Most repeated lines in the summary to see how many times each of them appears.
Choose Only unique. This keeps only the lines that appear exactly one time and removes every line that is repeated, including its first copy.
It removes spaces and tabs at the start and end of each line before the lines are compared, so a line with an extra trailing space counts as the same as one without. The spaces are removed from the result too.
Without Remove empty lines, blank lines are treated like any other line, so several blank lines collapse into one. Turn on Remove empty lines to delete them all.
Yes. Use Sort result to order the cleaned list from A to Z, from Z to A, from the shortest to the longest line, or from the longest to the shortest. Numbers inside lines are sorted in natural order, so 2 comes before 10.
This tool works with whole lines. Replace the commas with line breaks so that each item is on its own line, remove the duplicates, and then join the lines back together with commas if you need to.
You can work with up to 2,000,000 characters at a time, and uploaded text files can be up to 2 MB. Very large texts may take a moment to process in your browser.
No. The tool runs in your browser, and your text and files are not uploaded or stored.
Yes. You can remove duplicate lines online for free, with no signup and no watermark.
Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.
Explore All Tools →