Remove Duplicate Lines Online — Original Order Kept
Deduplicate huge IP, domain, log or word lists with case-sensitivity toggle.
4 duplicate lines removed, 3 lines left.
- The original order is kept; only lines that already appeared are dropped. Choose the last occurrence when newer lines further down the list should win.
When to use the Duplicate Line Remover & Unique Filter
The order is not shuffled
Unlike sort -u in a terminal, this keeps the original order and only drops lines that already appeared. Priority lists, logs and queues still read the way they did, ready to go back into a script or a spreadsheet.
First or last occurrence
Choose the last occurrence when lines further down are newer, such as configuration entries overridden later. The lines that stay keep their own positions.
Spaces and letter case
By default spaces at both ends of a line are ignored and CORE-RTR counts as core-rtr. Turn those options off when the difference matters, for codes that are case-sensitive for instance.
Empty lines and the tally
Empty lines can stay as separators between groups or go with the other duplicates. The tool also shows how many lines were removed and how many are left.
Frequently asked questions
How many lines can it handle?
A hundred thousand lines finish within seconds because each line is looked up in a hash table; the only limit is browser memory.
Is the order the same as before?
Yes. Only duplicates are dropped; sort afterwards with the line sorter if you need to.
What about lines that differ only in spaces?
With spaces at line ends ignored they count as equal, and the line that stays is written exactly as it was.
Are accented letters handled?
Yes. Case-insensitive comparison follows Unicode rules, so ÉCOLE and école count as the same line, while école and ecole remain two different lines.
Is my list sent anywhere?
No, the list is processed in your browser.
Similar tools
- Real-Time Regular Expression & Capture Group TesterTest JS patterns (g/i/m) live with match count, offset indexes & presets.
- Line-by-Line & Inline Word Diff CheckerCompare .env, router scripts & JSON side-by-side showing added & deleted lines.
- UPPER, lower, camelCase, snake_case, kebab-case ConverterTransform strings cleanly between camelCase, PascalCase, snake_case & Title.
- Regex & Multi-Line Find and Replace ToolPerform fast multi-line plain text or RegExp search & replace in browser.