Remove duplicate lines from text

Remove duplicate lines while keeping the first occurrence. Optionally ignore case or leading and trailing whitespace.

Paste one item per line, choose comparison options and download a clean TXT list in its original order.

Your inputs stay hereINSTRUMENTA OMNIA

Set your data

Set your data

Paste one item per line, choose comparison options and download a clean TXT list in its original order.

Result

Enter your data and run the tool. Your result will appear here.

The values you enter stay on this page. Reloading or closing it clears them.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use it

Paste one item per line, choose comparison options and download a clean TXT list in its original order.

How text is processed

A set of comparison keys identifies duplicates. Ignoring outer whitespace does not alter the retained line’s actual text.

Practical example

Three lines apple, pear and apple become apple and pear. Ignoring case makes Apple and apple equivalent.

Options and limits

The first matching line is kept exactly. Blank lines can also be duplicates, so at most one is retained. Accents remain significant.

Frequently asked questions

How does the text change?

Three lines apple, pear and apple become apple and pear. Ignoring case makes Apple and apple equivalent.

What should I check in the result?

The first matching line is kept exactly. Blank lines can also be duplicates, so at most one is retained. Accents remain significant.