Remove Duplicate Lines
Remove repeated lines while keeping their first occurrence and original order. Compare exactly or ignore letter case, locally.
Keep the first occurrence of each line in its original order. Spaces remain significant. Ignore-case mode keeps the spelling of the first occurrence.
How to use Remove Duplicate Lines
Paste a list with one item per line.
Choose exact comparison or ignore-case comparison.
Copy or download the remaining unique lines.
Order and spelling are preserved
The first occurrence of each unique line is kept. Exact mode treats uppercase and lowercase as different. Ignore-case mode compares lowercase values but retains the original spelling of the first occurrence. Lines are never sorted.
Spaces and empty lines
Leading and trailing spaces remain significant. Empty lines are deduplicated like any other line, so at most one remains in its first position. Windows and classic Mac line endings are normalized to LF in the output.
Local text processing
Text is processed in your browser with a 1,000,000-character input limit. The tool compares plain lines, not CSV fields, spreadsheet cells, or semantic equivalents. Keep a copy of your original list if repeated entries carry meaning.