loot.tools

Duplicate Line Remover

Paste text and remove all duplicate lines instantly. Keeps the first occurrence of each line and preserves original order. Toggle case sensitivity and whitespace trimming.

Remove duplicate lines from text. Keeps the first occurrence of each line.

Input
Output

What this tool does

Paste text with repeated lines and get back only the unique ones. The tool keeps the first occurrence of each line and throws away the rest. Original order stays the same. You can toggle case sensitivity and whitespace trimming to control what counts as a duplicate.

How to use it

Paste your text in the input area. Duplicates are removed instantly and the result appears below. Check 'Case sensitive' to treat 'Hello' and 'hello' as different lines. Check 'Trim whitespace' to ignore leading/trailing spaces when comparing. The stats show total lines, unique lines, and how many were removed.

Common use cases

Cleaning up log files with repeated entries. Deduplicating email lists or CSV rows. Removing repeated lines from data exports. Cleaning up command history. Preparing unique word lists from raw text.

© 2026 loot.toolsYour data stays in your browser.