Duplicate File Finder

Pick one or more folders, find files with identical content even when the names differ, choose the copy to keep and free the space.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add folders

    Press Add a folder and choose the folder to check. Add more folders to find copies across them, or Add files on a phone.

  2. 2
    Set filters

    Ignore tiny files, limit the scan to extensions such as jpg or mp4, and skip hidden system files.

  3. 3
    Choose the keeper rule

    Pick Keep the oldest file or another rule, and type a folder name that should always be kept.

  4. 4
    Find duplicates

    Press Find duplicates and watch the progress; press Stop at any time.

  5. 5
    Review groups

    Change the keeper with the radio buttons and untick any copy that should stay where it is.

  6. 6
    Export

    Download the CSV report and the PowerShell or Bash script that moves the extra copies into _duplicates.

About this tool

Photo backups, downloads folders and old project copies fill disks with the same files saved again and again, often under different names such as IMG_2041 (1).jpg or report final v2.pdf. Comparing names misses most of them, and comparing by eye is hopeless with thousands of files. This finder compares what is inside the files. It first groups files by exact byte size, because two files of different sizes can never be identical. Only files that share a size are read. For each of those it computes a SHA-256 fingerprint of three 1 MB samples (start, middle and end), and where the samples match it hashes the whole file. Two files with the same full SHA-256 hash have the same content; a different file producing the same hash has never been observed. You choose a rule for the copy to keep in every group (oldest, newest, shortest path, longest name) or name a folder that should always win, then override any group by hand. The page lists the space you can free and writes a report and a script that moves the extra copies into a _duplicates folder for you to review.

How the comparison works

Size first, then a quick sampled hash, then a full hash: this order keeps the scan fast. A folder of 20,000 photos usually has only a few hundred files that share a size with another, so most files are never opened. Files up to 3 MB are hashed whole in the first pass. Larger files are hashed whole only when their samples match another file.

Very large files

Files over 512 MB are compared by size and the three samples only, to keep the browser from holding gigabytes in memory. They are marked sampled in the results and in the CSV. Two video files of exactly the same size whose start, middle and end are byte-for-byte identical are almost always the same file, but check them before you remove one.

Keeping the right copy

The oldest copy is usually the original from a camera or a download, so it is the default. Choose the shortest path when duplicates are scattered in deep sub-folders, or type part of a path, such as Photos/Originals, to protect that folder. Each group also has radio buttons to pick the keeper and tick boxes to leave a copy where it is.

Limits

A web page cannot delete or move files on your disk, so the tool does not remove anything itself. It writes a PowerShell or Bash script that moves the chosen copies into _duplicates inside the scanned folder, keeping their sub-folders, and never deletes. Picking a folder needs a desktop browser; on phones you can pick many files instead. Near-duplicates such as resized or re-saved photos have different bytes and are not matched: use a similar-photo finder for those.

Worked example

A Pictures folder with 14,382 files (61.4 GB) and a phone backup folder with 3,905 files were added together. 2,117 files shared a size with another file, the scan read 9.8 GB, and it found 1,644 groups holding 1,702 extra copies that used 7.9 GB. With Keep the oldest file and Always prefer a path containing Pictures, the PowerShell script moved 1,702 files to Pictures\_duplicates, and after a week of checking the folder was deleted to free 7.9 GB.

Quick facts

Frequently asked questions

Does it find duplicates with different file names?

Yes. Names, dates and folders are ignored when matching; only the bytes inside the files count. IMG_2041.jpg and IMG_2041 (1).jpg in another folder are found as long as their content is identical.

Are my files uploaded to compare them?

No. The browser reads the files on your device with the File API and hashes them with Web Crypto. No file content, name or hash is sent anywhere, so it also works on confidential folders.

Why are some groups marked sampled?

Files larger than 512 MB are compared using their size and three 1 MB samples rather than a full hash, to avoid running out of memory. Such matches are almost certain, but open both files before removing either.

Can it delete the duplicates for me?

Browsers do not let web pages delete files on your disk. Download the Windows or macOS / Linux script, read it, and run it inside the scanned folder. It only moves files into a _duplicates folder, so nothing is lost until you delete that folder yourself.

How long does a scan take?

Mostly as long as reading the candidate files. On an SSD, expect roughly 200 to 600 MB per second; a few gigabytes of same-size photos take under a minute. Files with a unique size are never read.

Does it find similar photos too?

No. A resized, cropped or re-compressed photo has different bytes and a different hash. This tool finds exact copies only, which is safe to clean up without looking at every image.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages