Remove Duplicate Lines

Remove duplicate lines from any list instantly, with case-insensitive matching, trim, sort and duplicates-only modes.

Options

0 lines in ยท 0 lines out ยท 0 duplicates removed

No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

Paste a list into the top box and every duplicate line is removed instantly โ€” the first occurrence of each line is kept and the original order is preserved, so you never have to sort your data just to deduplicate it. Turn on Ignore case to treat "Apple" and "apple" as the same entry, Trim spaces on each line so stray leading or trailing whitespace no longer hides a duplicate, and Remove empty lines to drop blank rows. You can also flip the tool around: choose "Only lines that appear more than once" to find the duplicates in a list, or "Only lines that appear exactly once" to keep just the one-off entries. The counter shows how many lines went in, how many came out and how many duplicates were removed.

Everything runs as plain JavaScript in your browser โ€” your list is never uploaded to a server, which makes it safe for emails, customer records, log files, keyword lists and anything else confidential. Use Copy result or Download .txt to take the cleaned list with you.

Frequently asked questions

How do I remove duplicate lines from a list?

Paste your list into the top box, one entry per line. The result box below updates instantly with every duplicate line removed โ€” the first occurrence of each line is kept and the original order is preserved. Then use Copy result or Download .txt to take the cleaned list with you.

Can it treat "Apple" and "apple" as the same line?

Yes. Tick "Ignore case" and lines that differ only in capitalisation count as duplicates, so only one of them is kept. Tick "Trim spaces on each line" as well if stray leading or trailing whitespace might be hiding duplicates in your data.

Can I see only the duplicate lines instead of removing them?

Yes. Switch "What to keep" to "Only lines that appear more than once" to list just the duplicated entries, or to "Only lines that appear exactly once" to keep only the one-off lines. The counter always shows how many lines went in, how many came out and how many duplicates were removed.

Report a bug