Duplicate File Name Detector

A folder export shows report.pdf, report (1).pdf and report (2).pdf, and you want to confirm what is duplicated before cleaning up. Paste a filename list, one name per line, and this tool counts how often each name appears. Paths are ignored: only the file name at the end of each line is compared, and you can choose whether letter case counts.

How to find duplicate filenames

  1. 1

    Paste the list

    One filename per line. If a line contains a full path, only the file name at the end is compared.

  2. 2

    Choose the matching option

    Leave "Ignore case" on so `IMG_1234.jpg` and `img_1234.JPG` count as one name, or turn it off for exact matching.

  3. 3

    Detect duplicates

    Click the button. Every name that appears more than once is grouped with its count.

  4. 4

    Use the result

    The output is a small CSV list: name, count. Copy it into your cleanup script or spreadsheet.

How matching works

Setting Behavior Example
Ignore case (default) Letter case does not matter IMG_1234.jpg = img_1234.JPG
Exact Names must be identical IMG_1234.jpg only matches IMG_1234.jpg
Full paths Only the file name at the end is compared /photos/IMG_1234.jpg = IMG_1234.jpg

The output lists each repeated name once with its count. Names that appear only once are not listed.

Patterns this tool catches

  • Browser download copies. doc.pdf, doc (1).pdf and doc (2).pdf appear when you save the same file repeatedly.
  • macOS “copy” markers. file.jpg and file copy.jpg, file copy 2.jpg.
  • Windows duplicate suffixes. name - Copy.docx, name - Copy (2).docx.
  • Camera folder imports. The same IMG_1234 name lands in several year folders when the camera counter resets.

What it does not do

  • No content comparison. Two different files named invoice.pdf count as duplicates here. The tool compares names only, so verify by content before deleting.
  • No near-matches. report.pdf and reprot.pdf are different names and are not grouped.
  • No special extension handling. photo.jpg and photo.png are different names.
  • No deletion. The tool only lists names and counts; the decision is yours.

After finding duplicates

  1. Do not delete automatically. Review the groups, especially when names are common (report.pdf, image.jpg).
  2. Verify by content before deleting: compare file sizes or a content hash (SHA-256) to confirm the files are actually the same.
  3. Back up first when the files come from an archive you cannot replace.

Frequently Asked Questions

Names only. For content-based duplicate detection you need a hashing tool that reads the actual file bytes. This detector works with plain filename lists, like the ones you get from directory exports.

Yes. When a line contains a path, only the file name at the end is compared; the folder parts are ignored.

Because “Ignore case” is on by default. Turn it off and the tool treats the two names as different.

Yes. The list is sent to our server so the detection can run, and the result is shown on the page. The list is not stored afterwards.

Related Tools

Tool available in other languages