sturdybits

Guides / Find Duplicates

How to find and remove duplicate files on Windows and Mac for free

30 November 2026

A duplicate file is an exact copy: the same contents, byte for byte, whatever it's called. To find them for free, use an app such as dupeGuru or Czkawka, or on Windows a short PowerShell command that compares each file's fingerprint (its hash). Then move the spare copies into a folder of their own and check them before you delete anything.

Same name isn't the same file

Two files called Report.docx in different folders can hold different versions, while IMG_2041 (1).jpg may be an exact copy of IMG_2041.jpg. So a duplicate finder worth trusting compares contents, not names. The usual method starts with file size, since files of different sizes can't be identical, then works out a hash from every byte of the files that are left. Matching hashes mean matching contents.

Similar isn't the same either. A photo that's been resized or edited is a different file. Some apps can find similar pictures too, but those need a closer look before anything goes.

What Windows and Macs have built in

Windows doesn't include a duplicate finder. Storage Sense clears temporary files and old Recycle Bin items, but it doesn't look for copies.

On a Mac, Finder doesn't look for them either, but two apps check their own libraries:

Neither looks outside its own library.

1. dupeGuru

Good for: a simple app on Windows, Mac or Linux.

dupeGuru is free and open source. Add the folders to scan with the + button, choose the Contents scan type so it compares what's inside the files, and click Scan. It groups files of the same size and compares their hashes. In each group the first file is the reference, which it never marks. To move the copies rather than delete them, choose Mark All (in the Mark or Edit menu, depending on the version), then Actions > Move Marked to... and pick a folder.

Its latest release is still version 4.3.1, from 2022.

2. Czkawka

Good for: large folders, and extra clean-up tools.

Czkawka is free and open source, for Windows, Mac and Linux, and still in active development: version 12.0.2 came out in September 2026. Download Krokiet, its newer interface; the developer says version 12 is the last release of the older GTK one. Choose the duplicates tool, add your folders and set it to compare by hash, which checks contents, rather than by name or size alone. Select the copies and use the move button rather than delete. It also finds similar images and videos, empty folders and large files.

Download either app from its project's own page, not from a download site.

3. A PowerShell hash check on Windows

Good for: a list of copies with nothing to install.

Open PowerShell from the Start menu, change the folder in the first line to the one you want to check, and run:

Get-ChildItem -LiteralPath "$HOME\Pictures" -File -Recurse | Where-Object Length -gt 0 |
    Group-Object -Property Length | Where-Object Count -gt 1 |
    ForEach-Object { $_.Group | Get-FileHash -Algorithm SHA256 } |
    Group-Object -Property Hash | Where-Object Count -gt 1 |
    ForEach-Object { $_.Group | Select-Object Hash, Path } |
    Export-Csv -Path "$HOME\duplicates.csv" -NoTypeInformation -Encoding UTF8

It skips empty files, keeps only files that share their size with another, works out a SHA-256 hash for each with Get-FileHash, and saves every group of matching files to duplicates.csv in your user folder, ready to open in Excel. It only reads files; deciding what to remove is up to you. Large folders take a while, as every likely copy is read in full.

Move copies aside, then delete

When a tool is quicker

The apps need installing, and the script gives you a list, not a tidy-up. Find Duplicates is for when you'd rather not install anything and want the copies moved aside for you.

Choose a folder, or a folder and a second one such as a backup. Every file is compared by its contents: size first, then a sample, then a SHA-256 fingerprint of the whole file, so only exact copies are grouped. Each group shows where every copy is, its date, and the space the spare copies take. Choose which copy to keep: the oldest, the newest, the shortest path, the copy in a folder you choose, or one you pick by hand.

In Chrome or Edge on a computer, the spare copies move into a "Duplicates to check" folder inside the folder you chose, in the same subfolders they came from, with a log of what moved where. Nothing is deleted, and until you leave the page, Put them all back returns every file. Firefox and Safari can't change files, so there it lists the copies and you download the list as a spreadsheet. System files, empty files and app libraries such as an Apple Photos library are left out for you.

It runs in your browser, and your files never leave your computer. Finding and listing copies is free for any folder; the free version moves up to 25 copies at a time, and Pro is £15 once and moves any number. You can try it with a sample folder first.

Quick answers

Does Windows have a duplicate file finder? No. Storage Sense frees space in other ways but doesn't look for copies. Use a free app, or the PowerShell command above.

Is it safe to delete duplicate files? Exact copies of your own documents and photos, yes, once you've kept one. Leave system files, program folders and app libraries alone, and move copies aside before deleting them.

Will a duplicate finder find similar photos? Only if it has a similar-pictures mode, such as dupeGuru's Picture mode or Czkawka's similar images tool. Exact-copy finders, including the PowerShell check, list only identical files.