Remove Duplicate Lines

Remove duplicate lines from any list, log, or pasted text instantly. Keep the first or last occurrence, match case sensitively or not, and trim whitespace — with a live count of duplicates removed.

Output updates live. Each line is treated as one entry.

Options
0Original lines
0Unique lines
0Duplicates removed
Deduplicated text will appear here.

Frequently Asked Questions

What does Remove Duplicate Lines do?

It scans your text line by line and removes repeated entries, leaving only unique lines. Useful for cleaning email lists, keyword lists, log files, and any pasted data with repeated rows.

What is the difference between keep first and keep last?

Keep first occurrence preserves the earliest copy of each duplicate line and drops later ones. Keep last occurrence does the opposite — it keeps the final copy and removes earlier duplicates.

Does case-sensitive matching matter?

When enabled, "Apple" and "apple" are treated as different lines. When disabled, they count as duplicates and only one is kept.

Is my text stored or sent anywhere?

No. All deduplication runs entirely in your browser. Your text never leaves your device.

Is this tool free and does it work on mobile?

Yes on both counts. Remove Duplicate Lines on draft21 is completely free with no sign-up required and works on all devices.