Skip to content

MetehanKacar/windows-duplicate-file-cleaner-powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Duplicate File Finder & Cleaner for Windows (PowerShell + WinForms)

A fast, free, and open-source Windows duplicate file remover and cleaner built with PowerShell and WinForms.

It helps you find and remove duplicate files (images, videos, audio, and documents) using hash-based detection, and safely clean your system using Recycle Bin protection.


๐Ÿš€ Why this project

Many duplicate file cleaners are:

  • Paid or subscription-based
  • Overcomplicated and slow
  • Not transparent about detection logic

This tool is designed to be:

  • โœ” Free and open-source
  • โœ” Fully local (no cloud uploads)
  • โœ” Transparent duplicate detection logic
  • โœ” Safe file deletion with preview and Recycle Bin support

๐Ÿ‘‰ A simple and effective Windows duplicate file remover focused on performance and clarity.


โœจ Highlights

  • ๐Ÿ“ Multi-media duplicate detection (images, videos, audio)
  • โšก Fast scan pipeline:
    • File size grouping
    • Fast partial MD5 (first 8 KB)
    • Full-file MD5 verification
  • ๐Ÿ” True duplicate detection using hash comparison (not filename-based)
  • ๐Ÿ–ผ๏ธ Visual grouped browsing with thumbnails
  • โ˜‘๏ธ Smart bulk selection strategies:
    • Keep 1 per group
    • Select all duplicates
    • Select by folder
    • Clear selection
  • ๐Ÿ‘† Swipe-style review mode for fast decisions
  • ๐Ÿงพ Pre-delete confirmation dialog
  • โ™ป๏ธ Safe deletion via Windows Recycle Bin
  • ๐ŸชŸ Responsive WinForms UI
  • ๐ŸŒ Turkish & English language support (runtime switch)

๐Ÿ“ Supported formats

Supports Windows duplicate file cleanup for:

Images

.jpg, .jpeg, .png, .bmp, .gif, .tiff, .tif, .webp, .ico

Videos

.mp4, .avi, .mkv, .mov, .wmv, .flv, .webm, .m4v, .mpg, .mpeg, .3gp, .ts

Audio

.mp3, .wav, .flac, .m4a, .aac, .ogg, .wma, .opus, .aiff, .amr


๐Ÿง  Duplicate detection logic (important)

This tool detects true duplicate files on Windows using a safe and accurate algorithm:

A file is considered duplicate only if:

  1. File size matches
  2. Fast MD5 hash (first 8 KB) matches
  3. Full-file MD5 hash matches

๐Ÿ‘‰ This prevents false positives and ensures accurate duplicate file detection using hashing (MD5).


๐Ÿ›ก๏ธ Safety model

  • All deletions are reviewed before execution
  • Files are sent to Recycle Bin (preferred safe delete method)
  • Fallback direct delete only if Recycle Bin API fails
  • No background services or hidden processes

โš ๏ธ Known limitations

  • Detects only exact duplicates, not similar files
  • Does not yet support perceptual image matching (pHash/aHash)
  • Metadata-only differences may not be detected as duplicates

โš™๏ธ Requirements

  • Windows 10 / Windows 11
  • PowerShell 5.1+
  • Must run in STA mode (for WinForms UI)

๐Ÿš€ Quick start

  1. Clone this repository
  2. Open Windows PowerShell
  3. Run:
powershell -NoProfile -ExecutionPolicy Bypass -STA -File .\DuplicateFinder.ps1

๐ŸŒ Run without cloning (optional)

Run directly from GitHub:

powershell -NoProfile -ExecutionPolicy Bypass -STA -Command "irm https://raw.githubusercontent.com/MetehanKacar/DuplicateFinder/main/DuplicateFinder.ps1 | iex"

โš ๏ธ Note:

  • This executes the latest version from main
  • For safer usage, pin to a commit instead of branch

๐Ÿงญ How to use

  1. Select a folder
  2. Enable subfolder scanning (optional)
  3. Click Scan
  4. Review duplicate groups
  5. Select files using smart selection tools
  6. Delete safely (Recycle Bin)

๐ŸŒ Language support

  • Turkish / English UI switch available at runtime
  • UI text is dynamically localized
  • Core logic is language-independent

๐Ÿงฉ Repository structure

  • DuplicateFinder.ps1 โ†’ Main application
  • docs/ARCHITECTURE.md โ†’ System design
  • docs/LOCALIZATION.md โ†’ Localization system
  • docs/RELEASE_CHECKLIST.md โ†’ Release workflow
  • .github/ โ†’ CI & contribution templates

๐Ÿงช CI

GitHub Actions automatically:

  • Validates PowerShell syntax
  • Checks script integrity on push and PR

๐Ÿง  Roadmap

Planned improvements:

  • ๐Ÿ”ฎ Perceptual similarity detection (pHash / aHash)
  • ๐Ÿ“ฆ Save & restore scan sessions
  • ๐Ÿงพ Export scan reports (CSV / JSON)
  • โšก Performance optimizations for large datasets
  • ๐Ÿ–ผ๏ธ Advanced media metadata columns (resolution, bitrate, duration)

๐Ÿ”‘ Keywords

Windows duplicate file remover, duplicate file finder, duplicate file cleaner, remove duplicate files Windows 10, PowerShell duplicate finder, free duplicate file remover, disk cleanup tool Windows, media duplicate remover, file deduplication tool


โญ Support

If this project helps you manage disk space and remove duplicate files efficiently:

โญ Star the repository to support development


๐Ÿ“„ License

MIT License โ€” free to use and modify.

Contributors