Polysh for agents is in early access. Your coding agent records the demo, and Polysh finishes it. Join the waitlist →

Duplicate Line Remover

Remove repeated lines from a list and keep everything else in order.

Loading your browser tool…

What Duplicate Line Remover does

Merged keyword lists, exported email addresses, log lines and pasted to-do items often contain the same line several times. Paste the list and every repeat after the first copy is removed, while the order of the remaining lines does not change.

By default the comparison is exact but ignores spaces at the start and end, so an indented copy still counts as a duplicate. Turn on Ignore letter case to treat Support@ and support@ as the same line, or open More options and choose Keep: Last copy when the latest entry should win.

Example

Input

screen recorder
screen recording software
Screen Recorder
screen recorder
free screen recorder

Result

screen recorder
screen recording software
Screen Recorder
free screen recorder

The second lowercase screen recorder is removed. Screen Recorder stays because case matters until Ignore letter case is turned on.

How to use Duplicate Line Remover

  1. Paste your list with one item per line.
  2. Turn on Ignore letter case if capitalization should not matter, and use More options to keep the last copy instead of the first.
  3. Check the message for how many lines were removed, then press Copy or Download .txt.

Good to know

  • Lines must match exactly apart from edge spaces and, optionally, case. Near duplicates such as plurals or different punctuation are kept.
  • It does not sort the list. Duplicates are removed in place, so sort the list yourself first if you want an alphabetical result.
  • Each line is treated as one item. For comma-separated values on a single line, put each value on its own line first.

Questions about Duplicate Line Remover

How do I remove duplicates but keep the order?

Paste the list here. Unlike sorting tools or spreadsheet functions that reorder rows, it walks the list from top to bottom and drops a line only when the same line already appeared above it, so the first occurrence stays where it was.

Can I remove duplicate lines regardless of case?

Yes. Turn on Ignore letter case and lines that differ only in capitals, such as Billing and billing, are treated as the same. The copy that is kept retains its original capitalization.

Why were blank lines not removed?

Blank lines are never compared, so the gaps that separate groups in your list stay in place. If removing duplicates leaves extra empty lines, they are collapsed to the spacing your original text already used.