Remove Duplicate Lines
Remove duplicate lines from text while keeping the original order.
About Remove Duplicate Lines
Clean up any list by removing duplicate lines while preserving the order of the first occurrence. Optionally trim surrounding whitespace and ignore letter case so near-identical lines are matched too. The tool reports how many duplicates were removed and runs entirely in your browser.
How to use Remove Duplicate Lines
- 1
Paste your list or text into the box.
- 2
Choose whether to trim whitespace and ignore case.
- 3
Copy the de-duplicated result.
Frequently Asked Questions
Does it keep the original order?
Yes. The first time a line appears it is kept in place; only later duplicates are removed, so your ordering stays intact.
What does case insensitive do?
With case insensitive enabled, lines like 'Apple' and 'apple' are treated as the same, so only one of them is kept.
More Text Tools
Alphabetizer / Line Sorter
Sort lines alphabetically A–Z or Z–A with case, duplicate and whitespace options.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case and more.
Character Counter
Count characters, words, sentences, paragraphs and reading time as you type.