Duplicate Line Remover

Remove duplicate lines from any text. Supports case-insensitive matching, whitespace trimming, sort output, and keep first or last occurrence.

When to use Duplicate Line Remover

Remove repeated lines from a list while choosing which occurrence to retain.

How to use Duplicate Line Remover

Paste one item per line. Set trimming, case sensitivity, retained occurrence and ordering, then inspect the counts and output.

Worked example

Example — verified tool behavior
Default options: [ A , A, B] → [A, B]; one line removed

How the tool handles input

Default settings trim lines, compare case-sensitively, preserve order and keep the first occurrence. Keeping the last occurrence retains its position among the surviving lines. Disabling order preservation sorts with localeCompare.

Limitations

Trimming changes retained content. Empty lines participate in deduplication, including a trailing newline's empty item. Comparison does not normalize Unicode or parse CSV records.

Frequently asked questions

Does case-insensitive matching lowercase the output?

No. It uses lowercase comparison keys but retains the selected occurrence's text after any requested trimming.

What are the main limitations?

Trimming changes retained content. Empty lines participate in deduplication, including a trailing newline's empty item. Comparison does not normalize Unicode or parse CSV records.