Remove Duplicates
Remove duplicate lines from any block of text. Choose case-insensitive matching or whitespace trimming to control what counts as a duplicate.
About This Tool
Remove duplicate lines from any block of text in one click. Paste a list, choose whether matching should be case-insensitive or should first trim leading and trailing whitespace, and get a deduplicated result instantly. Useful for cleaning word lists, deduplicating CSV exports, filtering log lines or ensuring unique entries in configuration files.
Features
- ✓Case-insensitive Matching — Optionally treat "Apple" and "apple" as the same line.
- ✓Whitespace Trimming — Optionally trim spaces from both ends of each line before comparing, so " hello" and "hello " are treated as duplicates.
- ✓Removal Count — Shows exactly how many duplicate lines were removed.
- ✓Order Preserved — The first occurrence of each line is kept; subsequent duplicates are removed. The relative order of unique lines is unchanged.
FAQ
- What counts as a duplicate?
- By default, lines must match exactly (same case, same spacing) to be duplicates. Enable "Ignore case" and/or "Trim whitespace" to broaden the matching.
- Are blank lines treated as duplicates of each other?
- Yes. Multiple consecutive blank lines will be collapsed to a single blank line when deduplication runs.
- Does the tool change the order of lines?
- No. The first occurrence of each unique line is kept in its original position. Only later duplicates are removed.
Further Reading
- wikipediaDeduplication — Wikipedia