OpenReplay Logo
12k
12k

Remove duplicate lines

Remove duplicate lines from text in your browser — keep the original order, ignore case, and trim whitespace. Copy the cleaned result.

Keep
Processed locally

About this tool

This tool removes repeated lines from a block of text while keeping the order of the lines you keep. It's useful for cleaning up lists, logs, exports and word lists where duplicates have crept in.

Options let you ignore case (so 'Apple' and 'apple' count as the same), trim surrounding whitespace before comparing, and choose whether to keep the first or last occurrence of each duplicate. The tool shows how many lines were kept and removed, and the result copies with one click.

Everything runs locally — your text never leaves your browser.

Frequently asked questions

Does it preserve the original order?

Yes — the remaining lines stay in their original order. To reorder them, use the sort text tool, which can also dedupe.

What does 'ignore case' do?

It treats lines that differ only in capitalization as duplicates, so 'Hello' and 'hello' collapse to one. The kept line retains its original capitalization.

Keep first or last occurrence?

By default the first occurrence of each line is kept and later copies removed. Switch to keep-last to retain the final occurrence instead — useful when later entries are the ones you want.