Remove duplicate lines from any text instantly in your browser. Keep the first occurrence, match case-insensitively, trim whitespace, drop blank lines, or sort the result — then copy or download. No sign-up, nothing stored.
This duplicate line remover takes any newline-separated text and returns a cleaned version with repeated lines collapsed. By default it keeps the first occurrence of each line and deletes every later repeat, so your original ordering stays intact.
Beyond plain deduplication, you can match lines case-insensitively, trim surrounding whitespace before comparing, remove empty lines, and sort the output alphabetically. Two extra modes let you instead keep only the lines that repeat, or only the lines that appear exactly once.
Duplicate lines are removed while the original order of the first time each line appears is preserved.
Optionally treat lines like APPLE and apple as the same so casing differences do not slip through.
Trim surrounding whitespace before comparing and drop blank lines for a clean, tidy result.
Remove duplicates, keep only lines that repeat, or keep only lines that appear exactly once.
Sort the result alphabetically in one click, or leave it in the order your lines came in.
Every line is processed in your browser. Nothing is uploaded to a server or stored.
Drop a list, log, CSV column, or any newline-separated text into the input box.
Choose remove duplicates, keep only duplicates, or keep only unique lines that appear exactly once.
Toggle case-insensitive matching, whitespace trimming, empty-line removal, and alphabetical sorting.
The cleaned result updates live — copy it to your clipboard or download it as a .txt file.
It keeps the first occurrence of each line and removes every later repeat, so the original order of your lines is preserved.
With case-insensitive matching on, lines that differ only in letter casing — like Apple and apple — are treated as duplicates and collapsed into one.
Remove duplicates keeps one copy of every line. Keep only duplicates returns just the lines that appeared more than once, listed once each. Keep only unique lines returns the lines that appeared exactly one time.
Trimming removes leading and trailing spaces and tabs before comparison, so lines that look identical but have stray whitespace are correctly recognised as the same line.
No. The entire tool runs in your browser using JavaScript. Your text is never sent to a server, logged, or stored.
Yes. Turn on the sort option to order the output alphabetically. Leave it off to keep the lines in their original input order.
Convert text to UPPERCASE, lowercase, Title, camelCase, snake_case, and more.
Bulk find and replace text with case-insensitive, whole-word, and regex options.
Sort lines of text alphabetically, numerically, by length, reversed, or shuffled.
Delete line breaks and blank lines; join lines with a space or custom string.