Word and Text Tools
Word and Text Tools › Clean up and compare text › Remove duplicate lines

Remove duplicate lines

How do I use a remove duplicate lines? Deletes repeated lines from a list and keeps the first of each.

What it doesDeletes repeated lines from a list and keeps the first of each.
Exact ruleA line is a duplicate if the same line appeared earlier (compared exactly, or ignoring capitals and surrounding spaces if you tick the options); the first one is kept, in its original place.
Example textapple ⏎ Banana ⏎ apple ⏎ banana ⏎ Cherry
Example resultapple ⏎ Banana ⏎ banana ⏎ Cherry
LimitsLines that look the same but differ in an invisible character are kept as different.
Where it runsIn your browser: your text is never uploaded, stored or logged.

All tools in Clean up and compare text

How to use the remove duplicate lines

  1. Paste your list, one item a line.
  2. Choose whether capitals and surrounding spaces matter.
  3. Copy the de-duplicated list.

How it works

A line is a duplicate if the same line appeared earlier (compared exactly, or ignoring capitals and surrounding spaces if you tick the options); the first one is kept, in its original place.

Lines that look the same but differ in an invisible character are kept as different.