Remove Duplicate Lines
Remove repeated lines from a list and keep only the first occurrence of each.
Runs entirely in your browser.
Remove Duplicate Lines from Text
About Remove Duplicate Lines
This removes repeated lines and keeps the first occurrence of each, so the order of the lines you keep does not change. That matters when the list is already in a meaningful order and you only want the repeats gone.
Turn on Case insensitive to treat Apple and apple as the same line. Trim whitespace first is worth enabling when lines were pasted from a spreadsheet or an indented file, because trailing spaces otherwise make two identical-looking lines count as different.
Other Line Tools
- Sort Lines — alphabetically, numerically, or by length
- Find Duplicate Lines — report what repeats, and how often
- Shuffle Lines — randomize the order
- Reverse Line Order — flip the list upside down