Skip to content

Remove duplicate lines

Remove repeated lines from a list and keep the first occurrence, with case and whitespace options. Runs in your browser, nothing is uploaded.

AvailableIn your browserInput: Text

How to use: Remove duplicate lines

  1. Paste the list, one entry per line.
  2. Decide whether to be case sensitive, ignore spaces and keep empty lines.
  3. Copy the de-duplicated list.

What it accepts and what you get

Input
Text with one entry per line.
Output
The list with the first occurrence of each line and the number of duplicates removed.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • The original order is kept.
  • Empty lines are not treated as duplicates of each other if you choose to keep them.

Frequently asked questions

How do I remove repeated lines from a list?

Paste the list with one entry per line and copy the result: the first occurrence of each line stays and the number removed is shown.

Does it tell upper and lower case apart?

You decide: you can match case, ignore spaces and keep empty lines. The original order is kept.

How do I know how many lines were removed?

The number of duplicates removed appears below the result, so you can check the list came out as you expected.

Does it work for email or URL lists?

Yes, it is one of its most common uses. If some addresses differ only in capitals, untick “Case sensitive” so they count as repeats.

When to use it

  • When you have a list of emails, names or URLs with repeats.
  • To clean a list before importing it.
  • When you have joined several lists and want each item to appear only once.

Examples

Email list
Paste one address per line and get the list without repeats, with the number of duplicates removed.
Ignore case
Turn off case sensitivity so “Ana” and “ana” count as the same.
Joining lists
You paste three email lists one after another and get a single list with no repeats.

Common mistakes

  • Leaving trailing spaces: “ana ” and “ana” differ unless you tick ignore spaces.
  • Expecting the order to change: the original order is kept and the first occurrence stays.
  • Forgetting that “Ana@mail.com” and “ana@mail.com” only count as the same if you untick “Case sensitive”.

Suggested next steps