Skip to content

Why your PC has several copies of the same photo, and how to tell which one is the original

On 13 invented picture files from five routes, Get-FileHash grouped only the 4 identical pairs; Duplicate Image Finder matched all 8 copies and kept every original in place.

We make Duplicate Image Finder, the app this guide uses. The free methods come first; every step shown in Duplicate Image Finder was checked in the app itself, and the screenshots come from the real app with invented sample data.

Short answer

The same photo reaches a PC by several routes: a phone's cloud backup and a cable import of the same pictures, a messenger saving the photos it receives, a cloud export, and copies shared or edited along the way. Only some of these copies are identical files. On an invented set of 13 picture files from five such sources, a PowerShell listing showed which files keep the full size, the date taken and the camera, and Get-FileHash grouped only the 4 identical pairs. Duplicate Image Finder matched all 8 copies to their originals, said how each one differs, and moved them aside while every original stayed in place.

Where the copies come from

  • Backup, then import. OneDrive's camera upload on a phone is one-way: deleting a photo on the phone does not delete its copy in OneDrive. The Windows Photos app imports from a phone into a folder you choose. Do both and the PC can hold two copies of each photo: identical files when OneDrive keeps its files on the PC and the import does not convert them.
  • iPhone conversions. Apple says HEIF photos might be converted to JPEG when they are imported to a PC, unless Keep Originals is chosen in the iPhone's Photos settings. A converted copy and the HEIF original are not the same file, and Duplicate Image Finder cannot match them (see Limitations).
  • Messengers. On Android, WhatsApp's Media visibility option is on by default, and the photos you receive are saved on the phone, in WhatsApp's media folder; a photo is sent in standard or HD quality. So a photo of yours that someone sends back to you in a chat is saved there again, as a new file.
  • Exports. Google Takeout puts the extra data of a photo in a separate JSON file, while the photo keeps its original timestamp in its own metadata. Exporting a library you also back up elsewhere gives another copy of every photo.
  • Shared and edited copies end up in Downloads: some without the camera data, some saved again by an editor, with or without it.

Our test set imitates these routes with invented pictures: four photos of 4000 by 3000 pixels with an invented camera ("AGI Sample Phone P-12") and dates, plus a .heic test file (2.4 MB of random bytes with a .heic name, not a real HEIC photo), in a "OneDrive Camera Roll" folder; identical copies of IMG_4821, IMG_4822 and the .heic file in "Phone import 2026-11-02", and of IMG_4823, with its JSON file, in a Google Photos Takeout folder; two messenger copies of 1600 by 1200 pixels without camera data in "WhatsApp Images"; and in Downloads, a shared copy of IMG_4822 without camera data and an edited copy of IMG_4824, saved again at a lower JPEG quality, also without camera data.

Method 1 (free): list size, date taken and camera with PowerShell

Windows PowerShell 5.1 can read the pixel size of each JPEG or PNG file and, when the file has them, two camera fields: the date taken (EXIF tag 0x9003) and the camera model (0x0110). This lists them with the file size and the start of each file's SHA-256, from the folder that holds the photo folders:

Add-Type -AssemblyName System.Drawing
$ascii = [Text.Encoding]::ASCII
Get-ChildItem -Recurse -File -Include *.jpg, *.jpeg, *.png | ForEach-Object {
    $img = [Drawing.Image]::FromFile($_.FullName)
    try {
        $ids = $img.PropertyIdList
        $taken = if ($ids -contains 0x9003) { $ascii.GetString($img.GetPropertyItem(0x9003).Value).Trim([char]0) } else { '-' }
        $camera = if ($ids -contains 0x0110) { $ascii.GetString($img.GetPropertyItem(0x0110).Value).Trim([char]0) } else { '-' }
        [pscustomobject]@{
            File   = $_.FullName.Substring($PWD.Path.Length + 1)
            Pixels = "$($img.Width) x $($img.Height)"
            KB     = [math]::Round($_.Length / 1KB)
            Taken  = $taken
            Camera = $camera
            SHA256 = (Get-FileHash $_.FullName).Hash.Substring(0, 8)
        }
    } finally { $img.Dispose() }
} | Sort-Object Taken, File | Format-Table -AutoSize

We ran it on 30 November 2026 (Windows PowerShell 5.1, Windows 11). It listed the 11 pictures in 0.53 seconds:

File                                                Pixels        KB Taken               Camera SHA256
----                                                ------        -- -----               ------ ------
Downloads\IMG_4822 (shared).jpg                     4000 x 3000 2862 -                   -      9129E14D
Downloads\IMG_4824 edited.jpg                       4000 x 3000 1010 -                   -      0BC6CAF8
WhatsApp Images\IMG-20261012-WA0007.jpg             1600 x 1200   73 -                   -      53239786
WhatsApp Images\IMG-20261014-WA0002.jpg             1600 x 1200   71 -                   -      A8AE0D70
OneDrive Camera Roll\IMG_4821.jpg                   4000 x 3000 2855 2026:10:12 10:15:11 P-12   A155FE39
Phone import 2026-11-02\IMG_4821.jpg                4000 x 3000 2855 2026:10:12 10:15:11 P-12   A155FE39
OneDrive Camera Roll\IMG_4822.jpg                   4000 x 3000 2862 2026:10:13 11:15:12 P-12   BE31D030
Phone import 2026-11-02\IMG_4822.jpg                4000 x 3000 2862 2026:10:13 11:15:12 P-12   BE31D030
OneDrive Camera Roll\IMG_4823.jpg                   4000 x 3000 2852 2026:10:14 12:15:13 P-12   00B21457
Takeout\Google Photos\Photos from 2026\IMG_4823.jpg 4000 x 3000 2852 2026:10:14 12:15:13 P-12   00B21457
OneDrive Camera Roll\IMG_4824.jpg                   4000 x 3000 2851 2026:10:15 13:15:14 P-12   48562D4B

Here the originals are the files with the full size, a date taken and the camera, and the largest file of each photo; identical copies share their hash. Those signs are not proof: some editors keep the camera data and the pixel size when they save a copy again (ours did not, and the edited copy shows its 1010 KB against 2851 KB), and screenshots or scans have no camera data at all. Get-ChildItem -Recurse -File | Get-FileHash | Group-Object Hash | Where-Object Count -gt 1 found 4 groups of two identical files, the HEIC pair included, and nothing else; without the last step it also lists every other file as a group of one (10 groups here). The four copies without camera data are in no group: IMG_4822 (shared).jpg has the same size in KB as IMG_4822.jpg but other bytes, and the messenger copies carry a date in their name, not the photo they came from. Matching those to their originals means opening them side by side. Our guide to finding resized duplicate photos offline covers the hash method and its limits in more detail.

Method 2: match every copy to its original with Duplicate Image Finder

Duplicate Image Finder is our Windows app for this: it compares the pictures themselves, so it also finds smaller and re-saved copies of a JPEG photo, and copies converted to PNG or WebP, says how each one relates to the picture it keeps, and moves copies to a review folder instead of deleting them, offline. The screenshots below come from version 1.0.0 (evaluation build), with the same invented photos.

  1. Add the five folders and mark the camera roll backup Keep all: nothing there is ever moved.
  2. Search. The result: "5 group(s) · 8 extra pictures · 8 to move aside · 14.6 MB to get back", after looking at 11 pictures in 0.9 seconds, with 2 more (the HEIC pair) compared as files only.
  3. Read how each copy relates. The messenger copy of IMG_4821 is a "smaller copy (1,600 x 1,200)" of 73.0 KB with no camera data, next to the kept picture: 4,000 x 3,000, 2.8 MB, taken 2026-10-12 10:15 with the AGI Sample Phone P-12. The cable import and the Takeout file are an "identical file", the shared copy is the "same picture, other metadata", and the edited copy is a "re-saved copy". The app's own advice is to look at each pair before you move, since a small change, such as a small mark, can still count as a copy.
  4. Move the copies aside. After a confirmation, the app moved 8 pictures (14.6 MB) into a folder named with the date and time, inside a "Duplicates moved aside" folder, in each of the 4 searched folders that had copies, each with a list of the moved files and their SHA-256 and a READ ME. History can put them all back.
Duplicate Image Finder with five groups found: the WhatsApp copy, a smaller copy of 1,600 by 1,200 pixels without camera data, shown next to the kept original of 4,000 by 3,000 pixels from the OneDrive Camera Roll folder.
The messenger copy next to the original it came from. Duplicate Image Finder 1.0.0 (evaluation build), tested 30 November 2026, invented photos.
A group of three IMG_4822 files: the kept picture with its date and camera, an identical file from the phone import, and a shared copy from Downloads with the same pixels and no camera data.
Same picture, other metadata: the shared copy has lost its camera data. Duplicate Image Finder 1.0.0 (evaluation build), tested 30 November 2026, invented photos.
The window after the move: 8 pictures moved, 14.6 MB, into dated Duplicates moved aside folders in four searched folders, each with a list of moved files and a READ ME.
Copies moved aside, originals kept, every move listed. Duplicate Image Finder 1.0.0 (evaluation build), tested 30 November 2026, invented photos.

After the move, the five files of the camera roll and the Takeout JSON file were still in place. One wording to know: the status line also said "Not searched: 1 picture(s) below the minimum size". That file was the 74-byte Takeout JSON file, which is not a picture; it was not compared or moved.

How to Find Duplicate Photos on Windows Without Deleting the Wrong One1:00Watch on YouTubeNothing loads from YouTube until you press play. The player then loads from youtube-nocookie.com, YouTube's privacy-enhanced mode, and connects to Google's servers. Privacy

Limitations

  • The PowerShell listing covers JPEG and PNG files only, as written; Get-FileHash finds identical files only.
  • Duplicate Image Finder compares HEIC and RAW files as files only, so it finds identical copies of them and nothing more: a JPEG converted from a HEIC original is not matched to it. It reported the Takeout JSON file as a picture below the minimum size.
  • Our photos were drawn on a PC, with invented camera data, and the .heic files are test files, not photos. We did not test real phone backups, iPhone conversions or messenger apps.
  • Duplicate Image Finder's requirements: Windows 10 (22H2) or 11, 64-bit, 4 GB RAM.

References