Text tool
Remove Duplicate Lines
Delete repeated lines while keeping the first one in its original place.
Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.
Result will show here after you run the tool.
How to remove duplicate lines
- Paste the lines.
- Click Remove duplicates.
- Copy the list. The first copy of each line is kept.
Comparison is exact, including spaces. A later line that matches an earlier line is dropped.
Frequently asked questions
Which copy is kept?
The first one, in its original position. Later matches are removed.
Is the text uploaded?
No. The filter runs in your browser.
Related text tools
Keep working without leaving the site.
Word counter
Count words, characters, lines, and sentences.
Open toolSlug generator
Turn a title into a lowercase hyphenated slug.
Open toolRemove extra spaces
Collapse repeated spaces and trim each line.
Open toolFind and replace
Replace every match, or use a regular expression.
Open toolShuffle lines
Reorder a list at random, or pick one line.
Open toolRemove line breaks
Join wrapped lines and keep a gap between paragraphs.
Open tool