Text Tools

Remove Duplicate Lines

Paste a list to remove repeated lines, keeping the first of each, with a count of how many were removed.

Removed: 2

apple banana cherry

How to use it

  1. Paste your lines One item per line.
  2. Set the options Choose case sensitivity, trimming and whether to drop blanks.
  3. Copy the result Duplicates are gone, original order kept.

Examples

a, b, a, c a, b, c
Removed count 1

About this tool

This tool removes repeated lines from a list while keeping the first of each and preserving the original order — useful for cleaning up email lists, keywords, logs and any text with accidental duplicates.

Options let you ignore letter case, trim surrounding spaces before comparing, and drop blank lines. It also tells you how many lines were removed. Everything runs in your browser.

Frequently asked questions

Which duplicate is kept?

The first occurrence of each line is kept; later repeats are removed, so the original order is preserved.

What does "trim whitespace" do?

It ignores leading and trailing spaces when comparing, so " apple" and "apple" count as the same line.

Related tools

Updated June 12, 2026