Have you ever saved a new file over an old one by accident? A Duplicate File Name Checker helps you catch repeated names before that happens. This tool compares a pasted list of file names. It reports exact repeats and names that clash when case is ignored.
It suits photographers, office staff, developers, and anyone who renames files in bulk. You paste one name per line, and the report updates as you type.
Table of Contents
- What the Duplicate File Name Checker Does
- How to Use It, Step by Step
- The Duplicate Check Logic
- Worked Example
- How to Read the Report
- Case Collisions and Naming Tips
- Limitations and Assumptions
- FAQs About the Duplicate File Name Checker
What the Duplicate File Name Checker Does
The tool works only on pasted text, not on real files. Each line that is not blank counts as one file name. The report shows three cards and a copy button for the full text.
- Total Files: the number of non-blank lines, including repeats.
- Repeated Names: the number of names that appear more than once.
- Unique Names: the number of different names, with letter case kept.
How to Use It, Step by Step
- Find the box labeled Paste Filenames to Check (One per line).
- Paste your list, or type the names. Include the extension, such as report.pdf.
- Read the three cards: Total Files, Repeated Names, and Unique Names.
- Scroll down to the Duplicate Collisions Log to read the full report.
- Press Copy Duplicates Log to copy the full report text.
There is no Check button, because the report refreshes after every change to the input box. The box starts with a sample list so you can see how results look.
The Duplicate Check Logic
The tool splits the input at line breaks, then cleans each line. Each line is converted to Unicode form NFC and trimmed. Spaces at each end are removed, and blank lines are dropped. Then the tool counts every name in two separate ways.
- Exact count: each cleaned name is counted as typed, so Invoice.pdf and invoice.pdf stay apart.
- Case group: names are grouped after letter case is ignored, so case variants share one group.
Pasted Lines→Normalize and Trim→Count Exact Names→Count Case Groups→Report
- Total Files = number of cleaned, non-blank lines.
- Repeated Names = number of distinct exact names with a count above 1.
- Unique Names = number of distinct exact names.
Worked Example
Priya exports six file names from a shared photo folder for a quick review. She pastes them into the tool in this exact order:
- Invoice.pdf
- invoice.pdf
- logo.png
- Logo.PNG
- logo.png
- notes.txt
| Result | Calculation | Output |
| Total Files | Six non-blank lines | 6 Files |
| Repeated Names | logo.png appears on 2 exact lines | 1 Repeated Name |
| Unique Names | Invoice.pdf, invoice.pdf, logo.png, Logo.PNG, notes.txt | 5 Unique Names |
| Exact Collisions | logo.png appears 2 times | "logo.png" appears 2 times |
| Case Collisions | Invoice.pdf and invoice.pdf form one group of 2 entries. logo.png and Logo.PNG form one group of 3 entries. | 2 case groups |
The exact section flags logo.png only, because it is the only exact repeat. The case section lists both groups, and each group shows the names as typed.
How to Read the Report
The report has two sections, one for exact repeats and one for case clashes. The exact section gives the full count for each repeated name. Start there, because identical names in one folder can overwrite each other.
Then check the case section for pairs that could collide on another system. The Repeated Names card counts distinct names, not extra copies. A name typed three times adds 1 to that card.
Case Collisions and Naming Tips
Case-only pairs cause the most surprises when files move between systems. Windows and default macOS disks often treat such names as one name. Linux and many servers keep them separate, so one copy may replace another after a move.
Rename one file in each pair so the names differ by more than capital letters. Spaces inside a name still count, so my file.txt and myfile.txt stay separate.
For a broader cleanup of messy names, try the File Name Cleaner. For names with unusual symbols, the File Name Sanitizer is another option. To shorten long names, see the File Name Shortener for options. To review extensions in a list, use the File Extension Finder.
Limitations and Assumptions
- The tool has no folder picker, file upload, or cloud drive connection.
- Folder paths are not split, so photos/a.jpg and archive/a.jpg count as different names.
- No size limit is enforced, so very large lists are processed in full.
- Case matching is a practical approximation of Unicode case rules, not the full table.
- Reloading the page restores the sample list. Results are not saved between visits.
More utilities are listed in the developer tools hub.
FAQs About the Duplicate File Name Checker
Does the Tool Rename or Delete Files?
No, the tool never changes any files on your device. You must rename or remove files yourself in your file manager.
How Do I Get a List of File Names From a Folder?
Use your file manager or a command that lists folder contents, then save the output. Keep one name per line in a plain text file. Then paste the text into the input box.
Is My List Sent to a Server?
The checks run in your browser, and the page makes no network calls for your list. Your names stay on your device while the page is open.
How Fast Is the Check on a Large List?
In one headless Chrome test, 20,000 lines finished in about 36 milliseconds. Your results depend on your device, so very large lists may take longer.
What Happens If Copying Fails?
The button then shows Copy failed, and the report stays selected. Press Ctrl+C, or Cmd+C on a Mac, to copy it.
Can a Name Appear in Both Report Sections?
Yes, a repeated name also appears in the case section if its group has another spelling. Groups with only one spelling are left out of the case section.
This calculator gives general estimates only and is not professional advice. Reviewed for general accuracy by Prof. Dr. Khalil Mudassar, PhD.