Remove duplicate lines

Remove duplicate lines from a list.

Text

Remove duplicate lines from a list or text. Choose whether to keep the first or last occurrence, ignore case or surrounding spaces, and copy the cleaned result.

Duplicate line settings

Choose which occurrence to keep and how lines should be compared.

Keep

Options

0 characters · 0 lines

0 characters · 0 lines

Quick explanation

Paste your list with one item per line, choose the rule to keep duplicates, and enable the options you need. The result updates automatically with line and removed-duplicate counts.

Try this too

Need to sort your list?

Use the Line sorter to arrange a list alphabetically, numerically, or by length, with additional cleaning options.

Try this tool

Additional information

How to remove duplicate lines

Paste or type your list in the left area, with one item per line. The tool detects repeated lines and automatically displays a version without duplicates.

You can keep the first occurrence or the last occurrence of each line depending on the result you want.

What are the options for?

Trim line edges ignores spaces at the beginning or end of lines. Ignore case treats two lines as identical even when uppercase and lowercase letters differ.

You can also remove empty lines and sort the result to make the final list easier to review.

When is it useful?

Use it to clean lists of keywords, names, emails, links, references, spreadsheet values, or items copied from a document.

Review the output if the original order matters or if some repeated lines were intentional.

Limits and reuse

AppErgo tools are provided free of charge for practical and informational purposes. Although care is taken in their design, a result may be incomplete, unexpected or incorrect. Before relying on a result for any important use, check it using an appropriate method.

To report a bug in the tool, you can use the dedicated bug report form.

Results produced by AppErgo tools may be copied and reused freely. When publicly reusing a result, a method or an AppErgo page, a link to the relevant page is appreciated.

Unless otherwise stated, AppErgo texts, images, visual elements, scripts, templates and internal components remain the property of AppErgo.

For any other request, you can contact the webmaster.