Duplicate File Detector
Find duplicate files locally using SHA-256 content hashes
Duplicate File Detector — what it does
Select a set of files and the tool hashes each one with SHA-256 and groups files whose content is byte-for-byte identical — regardless of what they are named or where they came from. Content hashing finds the true duplicates that name-based comparison misses: the same photo saved as IMG_1024 and holiday-beach, or the same report downloaded three times.
Worked example
Four files from a downloads folder: the same Q3 report saved twice under different names, plus an appendix and a logo.
Input — selected files
Q3-report.pdf (1,164 bytes) Q3-report (1).pdf (1,164 bytes, same content) appendix.pdf (854 bytes) logo.png (125,430 bytes)
Output — Duplicate groups metric and result cards
Duplicate groups: 1 Duplicate groups 1 SHA-256 hash: 697483b3269a9da7180d9b40dba1e7db868cb87bf42dd60809005edf8968fd93 Q3-report.pdf 1.1 KB Q3-report (1).pdf 1.1 KB
appendix.pdf and logo.png are unique, so they are not listed at all; sizes are shown in KB to one decimal.
When this tool helps
- Cleaning a downloads folder where the same attachment was saved repeatedly under numbered names.
- Checking a photo collection for identical shots imported from several devices or backups.
- Verifying that two copies of a delivery are actually identical before deleting one.
How to use it
- Choose the files to scan — select generously, matching is exact.
- Run the duplicate scan.
- Review the duplicate groups the tool reports.
- Delete the redundant copies from your file manager.
Accuracy, limits, and good practice
- Only exact binary duplicates group together; the same photo at two sizes or qualities hashes differently and will not match.
- The tool reports duplicates but never deletes — removal is yours to do, deliberately, in the file manager.
- Hashing reads every byte of every file, so scanning many gigabytes takes real time; batch by folder for large collections.
Frequently asked questions
Can two different files share a hash?
A SHA-256 collision has never been found; for practical purposes a matching hash means identical content.
Do file names affect matching?
Not at all. Only content is hashed, which is precisely why renamed copies are caught.
Which copy should I keep?
Content is identical, so keep whichever name and location serves you best — prefer the one in its organised, final folder.
What does the page show when nothing matches?
The Duplicate groups counter reads 0 and the results area shows one line, No duplicates found. Unique files are never listed, so a scan of 50 files with a single pair of copies prints just that pair.
How exactly are files grouped?
Each file is read in full and hashed with SHA-256 using the browser's Web Crypto API; the grouping key is the byte size plus that hash, so two files only group when both match. Files are hashed one after another with the status reading Processing until the last one finishes, and sizes are shown in KB to one decimal, so a 329-byte CSV displays as 0.3 KB.
Related tools on this site
- Local Time Tracker — Track task time locally and export a CSV log
- Text File Merger — Combine multiple text files in order with a custom separator
- Batch File Renamer — Preview and rename multiple files with prefixes, suffixes, replacements, and numbering
Further reading: How Local Browser Tools Protect Your Files
Everything above runs inside this page. Duplicate File Detector needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
重複檔案偵測器能做什麼
選取一批檔案,工具會為每個檔案計算 SHA-256 雜湊,並把內容逐位元組完全相同的檔案分成群組——不論檔名為何、來自哪裡。內容雜湊能找出檔名比對抓不到的真重複:同一張照片存成 IMG_1024 與 holiday-beach,或同一份報告下載了三次。
實際範例
下載資料夾裡的四個檔案:同一份 Q3 報告以不同檔名存了兩次,另加一份附錄和一個標誌圖。
來源:選取的檔案
Q3-report.pdf (1,164 bytes) Q3-report (1).pdf (1,164 bytes, same content) appendix.pdf (854 bytes) logo.png (125,430 bytes)
產生:重複群組指標與群組卡片
Duplicate groups: 1 Duplicate groups 1 SHA-256 hash: 697483b3269a9da7180d9b40dba1e7db868cb87bf42dd60809005edf8968fd93 Q3-report.pdf 1.1 KB Q3-report (1).pdf 1.1 KB
appendix.pdf 與 logo.png 沒有重複,所以完全不會列;大小以 KB 顯示到小數一位。
什麼時候用得上
- 清理下載資料夾:同一個附件以編號檔名重複存了好幾份。
- 檢查照片收藏中,從多台裝置或備份匯入的相同照片。
- 刪除前先確認兩份交付檔案內容確實一致。
使用步驟
- 選擇要掃描的檔案——盡量多選,比對是精確的。
- 執行重複掃描。
- 檢視工具列出的重複群組。
- 回到檔案總管刪除多餘的副本。
精確度、限制與實務建議
- 只有二進位完全相同的檔案會成組;同一張照片的不同尺寸或品質,雜湊不同、不會配對。
- 工具只回報、絕不刪除,移除動作由你在檔案總管中自行執行。
- 雜湊要讀完每個檔案的每個位元組,掃數 GB 需要實際時間,大量收藏請分資料夾批次處理。
常見問題
兩個不同檔案會共用同一個雜湊嗎?
SHA-256 至今未發現碰撞;實務上雜湊相同即可視為內容相同。
檔名會影響比對嗎?
完全不會。只比內容,這正是改過名的副本也抓得到的原因。
該留哪一份?
內容完全一樣,留檔名與位置對你最有用的那份即可——優先留在整理好的正式資料夾裡的那份。
沒有任何重複時頁面會顯示什麼?
重複群組計數顯示 0,下方只有一行 No duplicates found。沒有重複的檔案一律不列,所以掃 50 個檔案只有一對重複時,就只印那一對。
檔案到底是怎麼分組的?
每個檔案都會完整讀取,以瀏覽器的 Web Crypto API 算 SHA-256;分組鍵是位元組大小加上該雜湊,兩者都相同才會歸成一組。檔案是一個接一個算的,算完前狀態列顯示 Processing;大小以 KB 顯示到小數一位,329 位元組的 CSV 會顯示為 0.3 KB。
本站相關工具
延伸閱讀: 本地瀏覽器工具如何保護你的檔案
以上步驟全部在這個頁面內完成,重複檔案偵測器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。