99+ Free Tools
← Back to all tools

Remove Duplicate Lines

Clean a list down to unique lines — emails, names, log lines, anything. The result updates live as you type. Everything happens in your browser; nothing is uploaded or stored.

A printed list with repeated lines crossed out in red pen, and a clean shorter list beside it
Paste a messy list, get back only the lines that appear once.

Your list

Paste a list with one item per line.

Unique lines

Nothing to show yet.

How this tool works

Matching. Two lines count as the same when their text matches under the settings you chose. With “Case-sensitive” on, “Apple” and “apple” are different lines; with it off, they are the same. With “Trim” on, spaces at the start and end of a line are ignored when matching (and trimmed in the output); with it off, “ apple” and “apple” are different lines. Lines that contain only spaces follow the trim setting too.

Keep first / keep last. “Keep the first occurrence” keeps the line where it first appeared and drops later copies. “Keep the last occurrence” keeps the line where it last appeared, in the order of those last appearances.

Sort A–Z. Sorts the unique lines alphabetically after removing duplicates.

Removed lines. Every dropped copy is listed under “Removed lines”, so you can check nothing you needed was lost.

Privacy. Everything happens in your browser. Your list is never uploaded, stored or shared.

Limits. Very large pastes (100,000+ lines) may be slow on low-end phones; this tool warns above 50,000 lines.