Remove Duplicate Lines

Deduplicate a pasted list without sorting it. Choose case-sensitive or case-insensitive comparison and keep the first nonblank occurrence.

Clean one-entry-per-line lists while retaining their original order. Comparison trims each line and can ignore case, while the output keeps the original spelling and spacing of the first surviving line.

  • 100% free
  • No registration
  • On your device
  • Modern browser
  1. 1Enter details
  2. 2View result
Removed: 2 duplicates
Unique Lines OutputLive
apple
banana
orange

Your input stays on this device for this operation. We don’t upload or store it.

About Remove Duplicate Lines

Clean one-entry-per-line lists while retaining their original order. Comparison trims each line and can ignore case, while the output keeps the original spelling and spacing of the first surviving line.

Case toggle

Choose whether capitalization distinguishes entries.

First occurrence

Retains the earliest line for each comparison key.

How to use Remove Duplicate Lines

  1. 1

    Paste one entry per line

    Paste the list into Input Lines.

  2. 2

    Set the case comparison

    Set Case Insensitive Deduplication to match how your entries should be compared.

  3. 3

    Copy the first occurrences

    Review Unique Lines Output and copy the list.

Formats and practical limits

Newline-delimited text in, first nonblank occurrences out.

  • Blank or whitespace-only lines are removed and included in the displayed removal count.
  • Comparison uses whole trimmed lines. It does not merge similar wording or deduplicate a column within a CSV row.

Practical example

Paste Apple, apple and Pear on separate lines. With case-insensitive comparison, Apple and Pear remain.

Further reading

Frequently Asked Questions

2 answers
Does it reorder the list?

The first surviving lines retain their input order.

Are leading spaces ignored?

They are ignored for comparison. The first retained line keeps its original spacing.