Order-Preserving Deduplication
Removes duplicates while keeping your lines in their original sequence — not sorted or shuffled.
500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Remove duplicate lines while preserving order
Duplicate lines are a surprisingly common problem: merging two lists produces repeated entries, exporting data from a spreadsheet or database creates duplicate rows, or copy-pasting from multiple sources adds the same item multiple times. Removing them manually from a list of hundreds is tedious and error-prone. Line Deduplicator removes every duplicate line from your text in a single operation, keeping only the first occurrence of each unique line by default. It also supports keeping the last occurrence, and optionally normalizes case or trims whitespace before comparing lines — so 'Apple', 'apple', and ' apple ' can all be treated as the same entry. The original line order is preserved so your deduplicated list stays in the sequence you expect.
Removes duplicates while keeping your lines in their original sequence — not sorted or shuffled.
Treat 'NYC' and 'nyc' as the same entry so mixed-case duplicates are caught.
Ignore leading and trailing spaces so ' item ' and 'item' are recognized as duplicates.
Keep the first or last instance of each duplicate to control which version survives.
Shows how many lines were removed so you can verify the operation completed correctly.
Deduplicates thousands of lines in milliseconds entirely in the browser.
Input: apple banana apple cherry banana
Output: apple banana cherry
Input: New York new york NEW YORK London
Output: New York London (case-insensitive mode removes the lowercased variants)
Input: id,name 1,Alice 2,Bob 1,Alice 3,Carol
Output: id,name 1,Alice 2,Bob 3,Carol