Remove Duplicate Lines
Deduplicate lists while keeping the first or last occurrence.
Loading tool…
About the Remove Duplicate Lines
Remove duplicate lines from a list while preserving order. Choose case-sensitive matching, trimming, keeping the first or last copy, and optional alphabetical sorting.
Everything happens locally in your browser. There is no account, no file upload and no waiting queue, and the tool stays free to use on desktop and mobile.
How to use it
- Paste your list, with one item per line.
- Choose whether matching ignores case and whether to trim spaces.
- Decide whether to keep the first or last occurrence of each duplicate.
- Copy the unique list or download it as a .txt file.
Frequently asked questions
Related tools
All text toolsWord CounterCount words, characters, sentences and reading time as you type.Character CounterCount characters with and without spaces, plus social and SEO limits.Case ConverterSwitch between sentence case, title case, camelCase, snake_case and more.Remove Extra SpacesCollapse double spaces, trim lines and remove blank lines or tabs.