๐งฌ Remove Duplicate Lines
Delete duplicate lines from any text or .txt file โ right in your browser
Input Text
Output Text
Options
Keep which occurrence?
Sort output
Remove duplicate lines from any list or text in one click. Choose case-insensitive matching, keep the first or last occurrence of each duplicate, and optionally sort the result โ processed instantly in your browser.
Frequently asked questions
How do I remove duplicates from a list?
Paste your list with one item per line and the tool removes repeated lines, showing how many duplicates were found. Copy or download the cleaned list when you are done.
What does case-insensitive matching do?
With it on, lines that differ only in capitalisation โ like "Apple" and "apple" โ count as duplicates and only one is kept. With it off, they are treated as different lines.
Should I keep the first or the last occurrence?
Keep-first preserves the original order based on when each item first appears, which is usually what you want. Keep-last is useful when later entries are more up to date, such as in an append-only log.