iShowPDF

Remove duplicate lines

Remove duplicate lines deletes repeated lines from a list and keeps the first copy of each.

What Remove duplicate lines does

Remove duplicate lines deletes repeated lines from a list and keeps the first copy of each. It is handy for cleaning lists of names, phone numbers, product codes or keywords copied from several places.

By default, capitals and spaces at the ends of lines are ignored when comparing, and empty lines are removed; untick any of these if you need exact matching. You can keep the original order or sort the result A to Z or Z to A. A note tells you how many lines were removed and how many kept. Your list is processed in your browser.

How to use Remove duplicate lines

  1. Paste your lines

    One item per line, copied from a spreadsheet, document or chat.

  2. Set the matching rules

    Choose whether capitals, end spaces and empty lines should be ignored.

  3. Choose the order

    Keep the original order or sort A to Z or Z to A.

  4. Copy the result

    Copy the clean list or download it as a text file.

Questions about Remove duplicate lines

How do I remove duplicate lines from text?

Paste the text here. Repeated lines are removed as you type, keeping the first of each.

Are 'Chennai' and 'chennai' treated as the same?

Yes, while Ignore capitals is ticked. Untick it to keep both.

Can I remove duplicates from an Excel column?

Yes. Copy the column, paste it here, then copy the result back into your sheet.

Related tools