SnapTools

๐Ÿงฌ Remove Duplicate Lines

Delete duplicate lines from any text or .txt file โ€” right in your browser
Input Text
0 lines
Output Text
Options
Keep which occurrence?
Sort output

Remove duplicate lines from any list or text in one click. Choose case-insensitive matching, keep the first or last occurrence of each duplicate, and optionally sort the result โ€” processed instantly in your browser.

Frequently asked questions

Paste your list with one item per line and the tool removes repeated lines, showing how many duplicates were found. Copy or download the cleaned list when you are done.

With it on, lines that differ only in capitalisation โ€” like "Apple" and "apple" โ€” count as duplicates and only one is kept. With it off, they are treated as different lines.

Keep-first preserves the original order based on when each item first appears, which is usually what you want. Keep-last is useful when later entries are more up to date, such as in an append-only log.