Remove Duplicate Lines
Removes repeated lines and keeps the first one, with an option to ignore case and whitespace.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Remove repeated lines from lists of emails, phone numbers or keywords before importing them into software. An option to ignore case and whitespace also catches lines that are almost the same.
How to use
- Paste your text into the left box.
- Choose how to match duplicates.
- Click Copy or Download.
Frequently asked questions
Is my text sent to a server?
No. The tool runs entirely in JavaScript in your browser, and the text you paste never leaves your device.
Can I paste from Excel or Google Sheets?
Yes. Copy a column from the spreadsheet and paste it in, and each cell becomes one line. Pasting the result back into a spreadsheet also lands cell by cell correctly.
Related tools
More Text tools
Text CleanerMerges extra spaces, fixes spacing around punctuation, removes blank lines and invisible characters, and normalizes Vietnamese Unicode in one pass.Reverse Line OrderFlips the order of the lines so the last line comes first, handy for reversing a list or a log.Markdown Diff CheckerCompares two Markdown versions as plain text, line by line, highlighting added lines, removed lines and changed words.Remove Empty LinesRemoves every blank line, or line with only whitespace, from your text.Markdown FormatterMakes Markdown clean and consistent: a space after #, one bullet style, blank lines around headings, and no trailing whitespace.Shuffle Lines RandomlyShuffles the order of lines using your browser's random numbers, useful for making groups or setting a presentation order.
See all text tools