Skip to content

Remove Duplicate Lines

Removes repeated lines from a list, keeping the first copy of each and the original order.

Your text stays on this device

This tool runs entirely inside your web browser. Your text is processed on your own device and is never sent to our servers. How this works

Without duplicates

Remove Duplicate Lines is a free tool that deletes repeated lines from a list and keeps the first copy of each, in the original order. It is useful for email lists, keywords, names, IDs and log files. Your list is processed in your browser and never uploaded.

How to remove duplicates

  1. Paste your list into the left box, one item per line, or open a .txt or .csv file.
  2. The list without duplicates appears on the right, with the number of lines removed underneath.
  3. Adjust the options if needed, then copy or download the result.

Options explained

Common uses

To put the result in alphabetical order as well, use Sort Lines. If you see duplicates that weren’t removed, run the list through Remove Extra Spacesto clear invisible characters first.

Frequently asked questions

Which copy is kept?

The first time a line appears is kept and later copies are removed, so the list stays in its original order. To also sort it, use Sort Lines afterwards.

Are “Apple” and “apple” duplicates?

By default, yes: differences in upper and lower case are ignored. Tick “Match upper/lower case exactly” to treat them as different.

Why weren’t two identical-looking lines removed?

One of them may contain an invisible character such as a non-breaking space. Run the text through Remove Extra Spaces first, which fixes invisible characters.

Is there a size limit?

No fixed limit. Lists with hundreds of thousands of lines work on a typical computer.

Last updated

Missing a feature, or need a tool we don’t have? Suggest it.