Remove Duplicate Lines
Delete repeated lines from a list, keeping the first occurrence of each unique line.
To remove duplicate lines, paste your list above. The first occurrence of each unique line is kept and later repeats are dropped. You can match case-insensitively and optionally sort the result alphabetically instead of preserving the original order.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Does removing duplicates preserve order?
Why do lines that look identical not match?
How to use the remove duplicate lines
- 1Enter or paste your lines.
- 2Turn "Case sensitive" on or off as needed.
- 3Turn "Keep original order" on or off as needed.
- 4The result appears immediately — copy or download it.
Embed this tool
Put the working remove duplicate lines on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Line SorterSort lines alphabetically, numerically, by length or in reverse — with natural-order support.Add Line NumbersPrefix every line with a sequential number, with a custom start, separator and zero padding.Columns to Lines ConverterSwitch between a delimited single line and one item per line, in either direction.List Randomizer & ShufflerShuffle a list into random order — for draws, pairings, running orders and sampling.Remove Line BreaksTurn multi-line text into a single line, joining with a space, comma or custom separator.ASCII Art Text GeneratorTurn words into large ASCII banner text for terminals, READMEs and code comments.
Last updated
More text tools