Utils365

Remove duplicate lines

Paste a list and get each line once, in its original order.

  • 100% free
  • No sign-up
  • Runs in your browser

Paste text, open a file, or drop one here

Next: Sort lines · Find and replace · Character counter

Report a problem with this tool

How to use Remove duplicate lines

  1. Paste your list

    Paste lines of text, such as emails, keywords or product codes, or open a .txt or .csv file.

  2. Choose how to compare

    Ignore case so Apple and apple match, trim stray spaces, remove empty lines, and keep the first or last copy of each line.

  3. Copy or download

    See how many duplicates were removed, then copy the clean list or download it as a .txt file.

Why use Utils365

  • Keeps your order

    Lines stay in the order you pasted them. Only the repeats are taken out; nothing is sorted unless you want it to be.

  • Catches near-duplicates

    Trailing spaces and different capitals are the usual reason duplicates slip through. Two ticks handle both.

  • Handles big lists

    Tens of thousands of lines are cleaned instantly in your browser, with nothing uploaded.

Frequently asked questions

How do I remove duplicate lines?

Paste your list into the box. Duplicates are removed straight away, and the count of removed lines is shown under the result. Copy it or download it as a .txt file.

Does it keep the original order?

Yes. Each line stays where it first appears, or where it last appears if you choose Last occurrence. To sort the list as well, use the Sort lines tool afterwards.

What does Keep last occurrence do?

If a line appears three times, the copy furthest down is kept and the earlier two are removed. This is handy for logs and lists where later entries are the most up to date.

Are Apple and apple duplicates?

Only with Ignore case ticked. Then the first spelling seen (or the last, with Keep last) is the one kept.

What happens to empty lines?

Empty lines are never treated as duplicates, so paragraphs keep their spacing. Tick Remove empty lines to delete all of them.

Can I remove duplicates from Excel or CSV?

Yes, for a single column: paste the column and copy the result back. For whole CSV rows, each row is compared as one line of text, so rows must match exactly.