Remove duplicate lines

Remove repeated lines from a list, such as emails, phone numbers, names or keywords. The first copy of each line is kept, in its original order.

Your files stay on your device. Nothing is uploaded.

Remove duplicate lines

Updates as you type

Step 1: Type or paste your text

Step 2: Options

What counts as the same

Step 3: Copy or download

How to remove duplicate lines

  1. Paste your list

    Paste the list into the first box, one item per line.

  2. Choose what counts as the same

    Ignore capital letters to treat Apple and apple as one, and ignore spaces at the ends. Tick Remove blank lines too for a tidy list.

  3. Copy the clean list

    The result updates as you type, with the number of duplicates removed. Copy it or download a .txt file.

About this tool

The first copy stays, in order

Each line is kept the first time it appears and later copies are dropped, so the list keeps its original order. To also sort it, use Sort lines with Remove duplicate lines ticked.

Common uses

Cleaning email lists before sending, merging exported contact lists, removing repeated keywords, and finding how many unique entries a list has.

Large lists

Lists with hundreds of thousands of lines work, because the check runs in your browser in one pass.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

Are "Apple" and "apple" the same?

Only if you tick Ignore capital letters. Then the first spelling found is the one kept.

Does it remove duplicate words inside a line?

No. It compares whole lines. Put one item per line first, for example with Find and replace to turn commas into line breaks.

Is my list uploaded?

No. The text stays in your browser and is never sent anywhere.

Can I count the lines?

Yes. The result shows how many lines are left and how many were removed.