Remove Duplicate Lines

Paste a list, one item per line. The first copy of each line stays where it was and later repeats are removed.

Your data stays in your browser

This tool runs on JavaScript inside your browser. Nothing you add here is uploaded to our server, so it works for confidential data too. How we handle data

  • No upload
  • Processed on your device
  • No account

How do I remove duplicates from a list without Excel?

Paste the list here and press one button. It's quicker than Excel's Remove Duplicates when your data is just a list, such as email addresses copied from several sign-up sheets, product codes, keywords, or a playlist that's been pieced together from different places.

How does the duplicate remover decide what to keep?

It keeps the first time each line appears and drops every repeat after it, so your original order stays exactly as it was. Empty lines are removed too. By default the check ignores capital letters, so "[email protected]" and "[email protected]" are treated as the same line, which is usually what you want for emails. Tick Case Sensitive if capitals matter.

Why does a line I think is a duplicate still show up?

Look for a stray space at the end, or a different kind of dash or quote mark. To the computer those are different lines. It's all processed in your browser, so it's fine for customer lists. Need to count what's left? The Character Counter shows the number of lines. Want to change capitals across the list? Use the Case Converter. You'll find more list and text helpers in our text tools.

Want to see what changed between two versions of a list or document? Use the Text Difference Checker.

Questions people ask

How do I remove duplicate lines from text?

Paste your text, click Remove Duplicates and copy the cleaned list.

Does it keep the original order?

Yes. The first copy of each line stays where it was, and later repeats are removed.

Is it case sensitive?

Not by default, so "Apple" and "apple" count as duplicates. Tick Case Sensitive to treat them as different lines.

Does it remove blank lines?

Yes, empty lines are removed along with the duplicates.

Why are some duplicates not removed?

They probably aren't exact matches. A trailing space or a different apostrophe is enough to make two lines different.

Can I use it for a big email list?

Yes. Thousands of lines are fine, and the list never leaves your browser.

Can it sort the list alphabetically?

No, it only removes duplicates and keeps your order as it was.

Related tools