Remove repeated lines from a list, keeping the first of each in its original order.
How to Use Remove Duplicate Lines
Paste your list with one item per line.
Set the options: Case Sensitive, Trim whitespace and Remove Empty Lines.
Read the unique lines on the right and the counts above. Copy them, or Download as a text file.
How duplicates are found
The first time a line appears it's kept, and later copies are dropped, so the list stays in its original order. With Case Sensitive off, Apple and apple count as the same line. With Trim whitespace on, spaces at the start or end of a line are ignored when comparing, so ' apple' matches 'apple'; the kept line still appears exactly as you typed it. Remove Empty Lines drops blank lines entirely.
The counts show how many lines you started with, how many are unique and how many were removed.
Need them sorted too?
This tool keeps your original order. To put the unique lines in alphabetical order, paste the result into the Text Sorter.
Key Features & Practical Use Cases
Cleaning a list of emails, names or keywords copied from several sources.
Finding how many unique items are in a long list.
Removing repeated lines from log output or exported data before analysis.
Frequently Asked Questions
Does it keep the first or last copy of a line?
The first. Later repeats are removed.
Will it change the order of my list?
No. Unique lines stay in the order they first appeared.
Can it remove duplicate words within a line?
No. It compares whole lines.
Is my list uploaded?
No. It's processed in your browser.
About OneClickly
OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.
Related Tools
Whitespace Remover - Remove extra spaces, tabs, and empty lines from your text.
Text Sorter (A-Z) - Sort list items alphabetically (A-Z, Z-A), numerically, or by length.
Text Case Converter - Convert text to UPPERCASE, lowercase, Title Case, Sentence Case, or camelCase.
Text Reverser - Reverse sentences, words, or individual characters easily.
Palindrome Checker - Verify if a word, phrase, or number reads the same backward as forward.
Text Diff / Compare - Compare two texts line by line to see what was added and removed.