Home › Image Tools › Duplicate Photo Finder

Duplicate Photo Finder

Scan a folder of pictures and find exact copies as well as near-duplicates that were resized, recompressed, lightly edited or cropped. Matching photos are grouped, the best copy is suggested to keep, and you can compare any pair side by side before cleaning up.

Last updated:

Scan a folder or drop photos hereJPG, PNG, WebP, GIF, BMP, AVIF · photos are read on your device and never uploaded
identical onlyloosely similar
Advertisement
Advertisement

How to use the Duplicate Photo Finder

  1. Press Scan folder and pick the folder with your photos (subfolders are included), or drop a folder or photos onto the box. A small demo set is scanned on load to show how results look.
  2. Wait for the scan: each photo is decoded once and reduced to a 64-bit fingerprint. Thousands of photos take a minute or two.
  3. Set the sensitivity: around 4-6 bits finds the same photo in different sizes or qualities; 10 or more also finds burst shots and light edits.
  4. Review the groups: the suggested keeper has a green border. Click any thumbnail to compare it side by side with the keeper, and untick Duplicate for photos you want to keep.
  5. Export the list with Copy marked file list or Download CSV report, then delete those files in your file manager or photo app.

How perceptual hashing finds duplicates

A normal file hash such as MD5 or SHA-256 changes completely when a single byte changes, so it only finds exact copies. A perceptual hash describes what the picture looks like instead. This tool uses the difference hash (dHash):

  1. The photo is scaled down to 72 × 72 pixels and converted to brightness (0.299 R + 0.587 G + 0.114 B).
  2. Blocks of 8 × 8 pixels are averaged into a 9 × 9 grid, which throws away fine detail, noise and compression artifacts.
  3. For each of the 64 cells in an 8 × 8 area, one bit records whether the cell is brighter than its right-hand neighbor (horizontal hash) and another whether it is brighter than the cell below (vertical hash).
  4. Two photos are compared by counting the differing bits, the Hamming distance. The tool averages the horizontal and vertical distances, so the result is 0 to 64 bits.

Photos whose distance is at or below the sensitivity are joined into a group (if A matches B and B matches C, all three end up in one group). Within a group, files with the same size are also checked with SHA-256 to label byte-identical copies.

What the difference in bits means

Hash differenceTypical causeSafe to delete?
0 bits + "Identical file"Exact copy of the same file (backup, re-download)Yes, keep any one
0-3 bitsSame photo saved at another size, quality or formatUsually; keep the highest resolution
4-8 bitsLight edits: brightness, filter, small crop, screenshot of the photoCheck side by side first
9-14 bitsBurst shots, the same scene seconds apartPick your favorite
15+ bitsDifferent photos with similar compositionUsually not duplicates

Tips for cleaning up a photo library

  • Back up first. Before deleting anything, make sure you have a copy of the library, especially when using a high sensitivity.
  • Keep the highest resolution. Messaging apps and social networks shrink photos, so the copy with the most megapixels is usually the original.
  • Use the CSV report to sort by folder or size in a spreadsheet when you clean up a large library.
  • Mirrored or rotated copies are not matched, because the fingerprint depends on orientation. Rotate them first if you need to compare them.

Frequently asked questions

How does the duplicate photo finder detect similar images?

It uses a perceptual difference hash (dHash). Each photo is shrunk to a tiny 9 × 9 grayscale grid and every cell is compared with its right-hand and lower neighbor, giving two 64-bit fingerprints that describe the photo's light and dark structure. Two photos are compared by counting how many bits differ (the Hamming distance); a small number means they look the same even if the files are different.

Can it find resized or edited copies?

Yes. Because the fingerprint describes the overall picture rather than the exact bytes, it still matches after resizing, saving at a different JPG quality, converting between formats, small brightness changes and slight crops. Heavy crops, rotations, mirroring and large edits change the fingerprint too much and will usually not match.

What sensitivity should I use?

0 bits finds only copies that look identical. 3 to 6 bits is best for the same photo in different sizes, formats or quality levels. 8 to 12 bits also groups near-duplicates like burst shots taken a moment apart, and above 14 bits you will start to see different photos with similar composition, so check those groups carefully.

Does this tool delete my photos?

No. Browsers do not allow a web page to delete files on your computer, and this tool never changes your files. It marks suggested duplicates so you can review them, then gives you the file list and a CSV report so you can delete them yourself in your file manager or photo library.

Are my photos uploaded?

No. The folder is read by your browser on your own device; photos are decoded and hashed locally with JavaScript. Nothing is sent to a server, so it works with private photos and even offline once the page is loaded.

Which file types are supported?

Any format your browser can decode: JPG, PNG, WebP, GIF, BMP, AVIF and ICO in all modern browsers. HEIC photos can only be read in Safari; in other browsers they are listed as skipped, so convert them to JPG first if needed.

How many photos can I scan at once?

Several thousand photos work well on a typical computer. Each photo is decoded once and only a small thumbnail and fingerprint are kept in memory, so the limit is mainly time: very large RAW-sized JPGs take longer to decode.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Image Diff CheckerCompare two images and highlight every changed pixel, with % difference and a swipe slider.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.Online Image ViewerOpen HEIC, TIFF, PSD, RAW, AVIF, WebP, ICO and more in your browser with zoom, pixel inspector and EXIF.Image CompressorShrink images to a target size like 100 KB.Background RemoverRemove image backgrounds automatically with AI.Photo EnhancerOne-click auto enhance: fix exposure, contrast, color cast and sharpness, one photo or a batch.Remove Object from PhotoBrush over unwanted objects, people or text and fill the area with matching background.Make Image TransparentRemove a white or solid-color background and save a transparent PNG, right in your browser.Image to Text (OCR)Extract text from images, screenshots and photos with OCR in 25+ languages, right in your browser.Photo to CartoonTurn photos into cartoons with smooth colors and bold outlines. Free, private, no upload.PSD to PNGConvert Photoshop PSD files to PNG and export every layer as its own PNG, no Photoshop needed.Image ResizerResize images to any size without losing quality.Compress Image to 20KBShrink any photo to under 20KB (or any target size).Compress Image to 100KBShrink any photo to under 100KB automatically, with the best quality that fits.Compress JPEG to 50KBShrink photos to under 50KB for forms, passports and exams.HEIC to JPGConvert iPhone HEIC photos to JPG.WEBP to JPGConvert WEBP images to JPG in bulk.PNG to JPGBatch convert PNG images to JPG with a background color.JPG to PNGBatch convert JPG images to PNG.Image CropperCrop images, including circle crops for profile pictures.Rotate & Flip ImageRotate images by any angle or mirror them, one or many at once.Meme GeneratorMake memes with classic templates and custom text.Collage MakerCombine photos into a grid collage.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Logo MakerDesign a text logo with fonts, icons and colors, then save SVG or PNG.Certificate MakerDesign certificates from templates and export one or many as PDF.WEBP to PNGConvert WEBP images to PNG, keeping transparency.SVG to PNGConvert SVG graphics to PNG or JPEG at any scale.PNG to ICOCreate multi-size favicon .ico files from PNG.GIF MakerTurn videos and images into GIFs, trim and compress.Business Card MakerDesign business cards and download a print-ready PDF.Flyer MakerDesign printable and social media flyers from free templates.Poster MakerDesign posters in A0–A5 and US sizes and download a print-ready PDF.Invitation Card MakerCreate printable birthday, wedding and party invitations for free.Color Palette GeneratorGenerate beautiful color palettes and export them.HEX to RGBConvert HEX colors to RGB and other formats.3D Text GeneratorRender extruded 3D text with depth, bevel, materials and rotation; export a transparent PNG.Add Date Stamp to PhotoStamp the EXIF or a custom date on photos in a retro orange camera font. Batch and ZIP download.Add Drop Shadow to ImageAdd a drop, long or reflection shadow to PNGs and photos and save a transparent PNG.Add Text to GIFPut captions on animated GIFs with outline, position and frame range, then download.Album Cover MakerDesign 3000×3000 album and podcast cover art with photo filters and type presets.Animated Text GIF MakerCreate animated text GIFs with typing, blink, bounce, rainbow or scroll effects; GIF or WebM.App Icon GeneratorMake every iOS, Android adaptive, PWA and macOS app icon size from one image, as a ZIP.Birthday Card MakerMake a printable folded birthday card from templates with photos, stickers and fonts; PDF or PNG.Blend Two ImagesOverlay two photos with opacity, 16 blend modes, fades and free positioning, then download.Blur Photo BackgroundBlur the background of any photo for a portrait-mode look. AI subject detection, no upload.BMP to JPGBatch convert BMP bitmaps to small JPG files with a quality slider and ZIP download.Book Cover MakerDesign ebook and print book covers with trim sizes, spine width from page count, PNG/PDF.Bookmark MakerDesign printable bookmarks with photos, quotes and patterns, front and back, many per sheet.Brick Mosaic GeneratorTurn a photo into a toy-brick stud mosaic with a parts list and printable build guide PDF.Brochure MakerMake tri-fold or bi-fold brochures from templates with panel guides and a two-sided print PDF.Comic Strip MakerMake comic strips with panel layouts, speech bubbles, captions and drawings; export PNG.Contact Sheet MakerLay out many photos as a printable thumbnail grid with filenames, then save it as PDF or JPG.Crop GIFCrop an animated GIF with a draggable box or aspect ratio presets, keeping every frame.Crop Image into ShapeCrop a photo into a heart, star, hexagon, circle, speech bubble or custom SVG shape as a PNG.Online Document ScannerTurn photos of paper into clean scans: auto edge detection, perspective fix, multi-page PDF.Drawing Grid MakerPut a numbered grid on a reference photo to copy it by hand. Print it or save as PNG or PDF.Envelope PrinterPrint return and recipient addresses on #10, DL, C5 or A7 envelopes, one or hundreds, as a PDF.Family Tree MakerBuild a family tree with people, dates and photos; auto-layout, save JSON, export PNG/PDF.Add Film Grain to PhotoAdd realistic analog film grain, light leaks, fade and vignette to any photo, then download.Flowchart MakerDrag-and-drop flowcharts with standard shapes, connectors and snap grid; PNG/SVG/JSON.GIF Speed ChangerSpeed up or slow down an animated GIF, or set each frame's delay, without losing quality.Gift Tag MakerDesign printable gift tags with holiday themes and to/from names, many per page with cut lines.Halftone GeneratorTurn images into mono or CMYK halftone dots and lines; export PNG or SVG.HEX to PantoneFind the 5 closest Pantone-style solid coated colors for any HEX or RGB, ranked by Delta E.Image Noise RemoverRemove grain and color noise from photos with median, bilateral or non-local means filters.
See all 368 Image Tools →