Free Duplicate Line Finder
Find, count, or remove duplicate lines from a list. Great for cleaning up email lists, audit logs, or finding repeat entries in data dumps.
This tool finds duplicate lines and CSV rows in text, not duplicate files or photos. To check whether two files are identical, use the file hash checker
Options
Output will appear here…Common uses
- Dedupe Email ListsClean up email lists before importing into Mailchimp, SendGrid, or other ESPs.
- Clean Data Before AnalysisFind duplicate rows in CSV exports or database dumps before analytics work.
- Identify Repeats in To-Do ListsSpot duplicate tasks in long to-do lists or project trackers.
- Count Word FrequencyPaste a list of words/keywords to see which appear most often.
- Find Repeated Commit MessagesPaste a git log to find authors' habitual commit message patterns.
How It Works
Duplicate detection runs entirely in your browser using a hand-written JavaScript Map that counts every line in a single pass — no library, no server, no upload. Results update live as you type.
- 1Line splitting and normalizationThe tool splits your text on newlines (handling both \r\n and \n), then optionally trims leading/trailing whitespace from each line and drops empty lines — controlled by the checkboxes you set before processing.
- 2Single-pass Map countingEach line is fed into a JavaScript Map keyed by its normalized form (lowercased when ignore-case is on). The Map accumulates an occurrence count per unique key in one linear pass, preserving the first-seen original text.
- 3Mode-specific output generationDepending on the selected tab — Count, Unique, Duplicates Only, or Highlighted — the Map's values are filtered or sorted (by frequency, alphabetically, or first-occurrence order) and formatted as plain text or an inline color-coded view.
- 4Copy or download the resultThe processed text can be copied to your clipboard, exported as a .txt file, or (in Count mode) copied as CSV with one row per value and its occurrence count — ready to paste into a spreadsheet.
Related Tools
Duplicate File & Photo Finder
Find duplicate files and similar photos in a folder: exact copies by content, plus resized or re-saved versions of the same photo. Keep the best copy and move the rest aside. Runs in your browser; nothing is uploaded.
Emoji Picker
Search and copy emoji with one click. Browse by category, build a string of several emoji, choose a skin tone and find the ones you used recently.
Text Sorter
Sort lines of text alphabetically, by length, numerically, or randomly. Remove duplicates, trim whitespace, and shuffle lists.