Deduplicate Lines
Remove duplicate lines from text keeping only unique entries.
Remove duplicate lines from a list and keep the first time each one appears, in the original order. Choose whether to ignore case and spaces at the ends of lines when comparing, and whether to drop empty lines. The note under the result says how many lines were removed and kept. It works on lists of thousands of lines instantly.
Common use cases
- Remove repeated emails, names or IDs from a list
- Clean a keyword list
- De-duplicate log lines or URLs
How to use
- Paste the list, one item per line.
- Choose the comparison options.
- Copy the de-duplicated list.
FAQ
Does it sort the list?
No. Lines stay in their original order. Use the sort lines tool afterwards if you want them alphabetical.
Which copy is kept?
The first one. Later repeats are removed.
Related tools
- Sort Lines AlphabeticallySort all lines of text in alphabetical or reverse alphabetical order.
- Remove Duplicate SpacesReplace multiple consecutive spaces with single spaces throughout text.
- Join LinesCombine multiple lines into a single line with custom separator.
- Remove WhitespaceStrip all whitespace characters including spaces, tabs, and newlines from text.
- Remove PunctuationRemove all punctuation marks from text while keeping letters and numbers.
- Trim WhitespaceRemove leading and trailing whitespace from text or each line.