Duplicate Line Remover
Remove duplicate lines from lists, with optional trimming and case sensitivity.
Loading tool…
How to use it
- Paste your list (one entry per line) — deduplication runs live as you type.
- Enable "Case-insensitive" to treat "Apple" and "apple" as duplicates.
- "Trim whitespace" compares lines after removing surrounding spaces.
- "Keep last occurrence" removes earlier duplicates instead of later ones.
About this tool
Filters a list to unique lines with options for case-insensitive comparison, trimming surrounding whitespace, and keeping either the first or last occurrence. A summary reports how many lines were removed so you can sanity-check the result.
Your input never leaves the browser: this tool works entirely offline once the page has loaded.
Frequently asked questions
Does it preserve the original order?
Yes — the first occurrence of each line is kept in place (or the last one, with "Keep last occurrence" enabled).
How are "almost identical" lines treated?
Only exact matches (optionally case-insensitive and trimmed) count as duplicates. Near-duplicates with different wording are kept.