Remove Duplicate Lines
Remove duplicate text lines, keeping the first or last occurrence with configurable comparisons.
Free. No signup required.
What this tool does
Remove repeated text lines while keeping the first or last occurrence. Control case, surrounding spaces and empty lines without uploading your list.
How to use
Paste one item per line. Choose whether to compare case and surrounding spaces.
Features
Choose first or last occurrence and control case sensitivity, trimming and empty lines.
When to use it
Clean a repeated list of labels while preserving the chosen occurrence order.
Common questions
How are lines compared for duplicates?
Comparison can ignore case and surrounding whitespace. Keep-first or keep-last controls which original occurrence is retained.
Data processing
This tool processes its input locally in your browser without sending it to a server for processing. Input and results are not included in share URLs.
Related tools
Sort Lines
Sort text lines locally.
Remove Extra Whitespace
Trim lines and collapse repeated whitespace locally.
Text Diff
Compare two text blocks locally.
CSV Deduplicator
Remove duplicate CSV rows locally.