Remove Duplicate Lines
Remove duplicate lines from text while keeping the order.
Use on any page (bookmarklet)
Want Remove Duplicate Lines without leaving the page you're on? Drag the button below to your bookmarks bar, then click it on any website to open Remove Duplicate Lines right there — it runs entirely in your browser.
Use responsibly: a bookmarklet runs on whatever page you click it on. Avoid sensitive sites such as online banking, payment, or healthcare pages — you run it at your own risk. Everything is processed locally and no data is sent anywhere. See our Terms.
- Show your bookmarks bar if it's hidden — Ctrl+Shift+B (⌘+Shift+B on Mac).
- Drag the button above onto the bookmarks bar.
- Open any website and click the bookmark — the Remove Duplicate Lines panel appears in the top-right corner. Use ✛ to move it between corners, or ›/‹ to tuck it against the edge and pull it back out.
- Click the bookmark again (or the ✕) to close it.
Note: a few sites with strict security policies may block bookmarklets.
Examples
Remove repeated entries
Input
apple banana apple cherry banana
Output
apple banana cherry
Ignore case
Input
Apple apple APPLE
Output
Apple
About this tool
This free online tool removes duplicate lines from any text or list while keeping the first occurrence and the original order. Paste a list of emails, URLs, keywords, or any line-separated data and get back a clean, de-duplicated version. Everything runs in your browser with no upload, so your data stays private.
How to use
- Paste your lines into the input box (or click Sample to try it).
- Optionally turn on Ignore case or Trim lines to control how duplicates are matched.
- Copy the de-duplicated result from the output box.
Common uses
Cleaning up email or subscriber lists, de-duplicating keyword research, tidying CSV columns, removing repeated log entries, and merging two lists into a unique set. Because it preserves order, it's safe to run on ranked or sorted data.
Frequently asked questions
Is this duplicate line remover free?
Yes — it's a completely free online tool with no sign-up and no limits. Paste any list and remove duplicate lines instantly.
Does it keep the original order?
Yes. It keeps the first occurrence of each line in its original position and removes only the later duplicates, so your list stays in order.
Can it ignore case?
Yes. Turn on 'Ignore case' to treat lines like Apple and apple as the same, keeping just the first.
What does 'Trim lines' do?
It ignores leading and trailing spaces when comparing, so ' apple' and 'apple' count as duplicates, and the kept lines are trimmed in the output.
Is my text uploaded anywhere?
No. Everything runs in your browser with no upload, so your data never leaves your device.
Does it remove blank lines too?
Only duplicate blank lines — the first blank line is kept. To remove all blank lines, use the Remove Empty Lines tool.
Learn more
Related tools
Regex Tester
Test regular expressions with live match highlighting, groups, and replace.
Word Counter
Count words, characters, sentences, and reading time.
Case Converter
Convert text between upper, lower, title, camel, and snake case.
Character Counter
Count characters and stay under tweet, SMS, and meta tag limits — live.