← Back to the catalog

Text utilities

Duplicate line remover

Remove repeated lines while preserving order, with comparison options and statistics.

Category
Text utilities
Status
Available

Clean a list of lines

Paste multiline text to remove repeats while preserving order.

Comparison options
Original lines
0
Resulting lines
0
Lines removed
0
Reduction
0%

Text is processed on this device and is not stored.

PRACTICAL GUIDE

Remove duplicate lines without changing their order

Paste a list with one item per line. The first occurrence is kept; the options change how lines are compared, not the content that remains.

How to remove duplicate lines

  1. Paste or type a list with one item on each line.
  2. Choose whether to ignore letter case, leading and trailing spaces, or blank lines when comparing.
  3. Review the result: the first occurrence stays, and you can copy it or download it as a TXT file.
  • Choose whether uppercase and lowercase letters should be treated as different.
  • When edge spaces are ignored, “ pear ” and “pear” compare equally, but the retained line keeps its original spacing.
  • When blank lines are kept, all remain in their positions. If removed, whitespace-only lines are removed too.
  • Windows, Unix and old Mac line breaks are accepted. Output uses Unix (LF) line breaks and keeps a final line break when result content remains; it does not add an extra content line to the statistics.

Example with a reference list

When cleaning a list of product codes, each code is kept once and in the order it first appeared.

Before

DR-104
DR-208
DR-104
DR-315
DR-208

After

DR-104
DR-208
DR-315

Two repeated lines are removed.

Frequently asked questions

Which line is kept when there are duplicates?

The first occurrence and its original content are kept. The list stays in order; options only affect comparison.