How to remove duplicate lines
- Paste your text into the Text with duplicate lines box — one item per line.
- Choose your options: Case-insensitive, Trim each line, Remove blank lines and Sort A–Z.
- Click Apply to deduplicate the list. The result appears below, ready to use.
- Hit Copy to grab the clean, unique list for your spreadsheet, email or code.
What each option does
- Case-insensitive — treats lines that differ only in capitalisation as the same, so Apple and apple collapse into a single entry.
- Trim each line — removes leading and trailing spaces before comparing, so a line padded with a stray space isn't mistaken for a unique value.
- Remove blank lines — strips empty or whitespace-only rows so they don't clutter the output.
- Sort result A–Z — orders the unique lines alphabetically (natural order, so item2 comes before item10). Leave it off to keep the original order.
First occurrence is always kept
When the tool finds a repeated line, it keeps the first time that line appears and quietly drops every later copy. That means the order of your remaining unique lines is exactly the order they first showed up in your text — perfect for cleaning email lists, keyword lists, CSV columns, log files or any list where the original sequence matters. The live counters show how many lines went in, how many unique lines came out, and exactly how many duplicates were removed, so you can see the cleanup at a glance.
Is it private?
Yes — every comparison and edit runs in your browser with plain JavaScript. Your text is never sent to a server, stored, logged or seen by anyone. Once the page has loaded you can even use the tool offline. There are no limits on how many lines you can paste beyond your browser's available memory.
Frequently asked questions
Does it upload my text?
No, everything happens locally in your browser and nothing is transmitted.
Does it keep the first or last duplicate?
It keeps the first occurrence of each line and removes every later repeat.
Can I deduplicate a very long list?
Yes. Paste as many lines as you like — the only limit is your browser's available memory.
Related: sort text lines · clean up messy text · count words & characters