Remove duplicate lines
Remove repeated lines from a list or text, keeping the first of each, with or without matching case.
Blank lines
Sort lines
9 lines in, 6 lines out: removed 1 duplicate line and 2 blank lines.
Missing a feature or found a bug in Remove duplicate lines? Tell me on X (@_andrewtran) or by email.
How to use Remove duplicate lines
- Paste the list or text.
- Tick Ignore case if "Apple" and "apple" are the same to you.
- Copy the result. The line above it says how many were removed.
Questions and answers
Which copy is kept?
The first, so the order of your list stays as it was.
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Related tools
Text cleaner
Trim spaces, remove blank and duplicate lines, sort lines, straighten quotes and strip HTML from messy text.Sort lines
Sort lines of text alphabetically, in reverse, by length or backwards, with numbers in natural order.Remove empty lines
Delete every blank line from a text, including lines that only hold spaces, in one step.Word counter
Count words, characters, sentences and paragraphs as you type, with reading time and top words.