Remove Duplicate Lines – Free Online Tool
Remove duplicate lines from text while preserving the original order.
2 duplicate line(s) removed
apple banana cherry
Example
Input
apple banana apple cherry banana
Output
apple banana cherry
Duplicate lines are removed while preserving the first occurrence of each.
How to Use Remove Duplicate Lines
- 1
Paste Text
Paste your text with duplicate lines.
- 2
Remove Duplicates
Click the button to remove duplicate lines.
- 3
Copy Result
Copy the deduplicated text.
Common Use Cases
- ✦Cleaning up log files with repeated entries
- ✦Deduplicating lists of URLs or emails
- ✦Preparing data for import
Embed This Tool
Add this tool to your website or blog with a simple iframe embed.
<div style="max-width:480px"><iframe src="https://buildutilities.com/embed/remove-duplicate-lines?ref=embed" width="480" height="360" frameborder="0" style="border-radius:8px;border:1px solid #2a2e3a;width:100%"></iframe><p style="font:11px sans-serif;color:#888;margin:4px 0 0;text-align:right">Powered by <a href="https://buildutilities.com/remove-duplicate-lines?ref=embed" target="_blank" rel="noopener">BuildUtilities</a></p></div>
Share
Share a link to this tool. Results can be passed via URL parameters.
https://buildutilities.com/share/remove-duplicate-linesMore Text Tools
Text processing, counting, comparison, and transformation.
/.*/ Regex Tester¶ Lorem Ipsum Generator≠ Text Diff CheckerW# Word CounterAa Text Case Converter/-/ Slug Generator
View all Text tools