Each line is compared against all previously seen lines. The first occurrence is kept and any subsequent identical lines are removed.
Your everyday toolkit
Text ToolsRemove Duplicate Lines
Remove duplicate lines from text. Optionally sort, trim whitespace, and ignore case when comparing lines.
Options
Using Remove Duplicate Lines well
Remove repeated text lines when cleaning a list while keeping the chosen comparison options in mind.
Example to try
Paste apple, banana and apple on separate lines. Compare the output before and after changing case sensitivity or whitespace options.
What to check before relying on the result
Line-based matching is not fuzzy matching. Different punctuation, spacing or letter case can make entries distinct. Preserve a copy if repeated lines carry meaning.
How to use Remove Duplicate Lines
View largerReal workspace previewA preview of the actual tool workspace
YOU’RE EXPLORING
Paste your lines
A few steps.
A whole new result.
Frequently Asked Questions
The useful details, before you get started.
When enabled, the resulting unique lines are sorted alphabetically after duplicates are removed.
Choose any question to see the details.
