All Text

Remove Duplicate Lines

Remove duplicate lines from a list.

remove-duplicate-lines.local
Result
The de-duplicated list will appear here.

How to use it

  1. Paste your list, one item per line.
  2. Choose whether to ignore case and surrounding spaces.
  3. Copy the de-duplicated list.

About this tool

This tool removes repeated lines from a list and keeps the first occurrence of each, preserving the original order. You can ignore leading and trailing spaces and ignore case when deciding what counts as a duplicate. It compares whole lines, so two lines that differ by any visible character are both kept.

Examples

Inputapple, banana, apple, cherry (one per line)
Outputapple, banana, cherry
InputApple and apple with ignore case on
OutputOnly the first is kept

Common uses

  • Clean a list of emails or keywords
  • Remove repeated entries from data
  • Tidy a copy pasted list
  • Deduplicate log or export lines

FAQ

Is my list uploaded?
No. De-duplication runs in your browser. Nothing you paste is sent anywhere.
Which copy of a duplicate is kept?
The first occurrence, and the original order of the remaining lines is preserved.
Can it ignore case and spacing?
Yes. Toggle ignore case and ignore surrounding spaces to control what counts as a duplicate.

Related tools

Embed this tool

Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.

<iframe src="https://tooldok.com/embed/remove-duplicate-lines/" title="Remove Duplicate Lines by Tooldok" width="100%" height="560" style="border:1px solid #16130d;border-radius:16px;max-width:720px" loading="lazy"></iframe> <p style="font:13px sans-serif"><a href="https://tooldok.com/tools/remove-duplicate-lines/" target="_blank" rel="noopener">Remove Duplicate Lines</a> by <a href="https://tooldok.com/" target="_blank" rel="noopener">Tooldok</a></p>