Home › Blog › How to remove duplicate lines from a list
Text Tools guide

How to remove duplicate lines from a list

Email lists, keyword lists and logs often contain repeated lines. This tool keeps each unique line once, in the original order.

Open the Remove Duplicate Lines tool

Step by step

  1. Add your text. Type or paste it into the box.
  2. Choose options. Pick the settings you need. The result updates as you go.
  3. Copy or download. Copy the result or save it as a file.

Tips for better results

  • Turn on “trim spaces” so “apple” and “apple ” count as the same line.
  • Turn on “ignore case” to treat Apple and apple as duplicates.
  • The stat line tells you how many lines were removed.

Limits to know

  • Formats: Plain text
  • Size: Limited by browser memory
  • Notes: Works on plain text. Very large inputs (several MB) can slow your browser.

At a glance

ToolRemove Duplicate Lines
CategoryText Tools
Works withPlain text
Size limitLimited by browser memory
Where it runsIn your browser tab; your input is not uploaded
CostFree, no sign-up

Frequently asked questions

Which copy is kept?

The first occurrence, so the order of your list is preserved.

Are empty lines removed?

Repeated empty lines are removed unless you tick “keep empty lines”.

If something does not work

  • The result is empty. Check that you typed or pasted text into the input box and that the options are not hiding everything.
  • The page feels slow. Very large text slows any browser tool. Work on smaller parts.
  • Characters look wrong. Make sure the text is saved as UTF-8 in the program you copied it from.
  • Copy does not work. Some browsers block automatic copying; select the result and copy it yourself.

Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.

Related tools and guides

More tools like this are in Text Tools, or browse all tools.