WinContig is a free file defragmentation tool for Windows by Marco D’Amato. Instead of processing an entire drive, it defragments only the files and folders a user selects. These might include the data of a program or game that loads slowly because its files are scattered across the disk. It runs as a stand-alone program, keeps its settings in its own folder and works on FAT32 and NTFS volumes.
Building the list of files to process
Every job in WinContig starts with an items list. Users can add files and folders individually, drag them in from File Explorer, or collect them with masks. These name patterns use ? and * wildcards to match items in a chosen folder and, optionally, its subfolders.
Users can save a list they need again as a profile. The profile later either replaces the current list or adds to it. WinContig warns when saved items no longer exist.
Fragmentation analysis
Analysis reads how each listed file is stored without moving anything. Fragmented files appear in their own tab with fragment counts, clusters used, size on disk and internal fragmentation; unreadable files go to an Errors tab. Results can be saved as a text report.
For a single file, the Fragments dialog lists each run of contiguous clusters with its position inside the file and on the volume. Sorting by disk clusters shows whether the pieces are stored out of order.
Defragmentation strategies and disk zones
WinContig moves file data through the Windows file-moving functions, so a file is not damaged if power is lost during the operation. Two placement strategies are available. Quick uses the first free area large enough for the file, which suits systems where the Windows defragmenter already runs regularly. Smart looks for the free area that fits the file best. When no gap can hold the whole file, it reduces the file’s number of fragments instead.
On mechanical hard drives, the Disk zone dialog decides where a file goes. Frequently used data can go to the faster outer area, rarely used data to the slower inner area, or a file can start at a specific cluster. A file that does not fit the chosen zone is either skipped or placed in the next suitable free space. The zones have no meaning on SSDs. WinContig’s guidance is to avoid defragmenting SSD files at all, since this adds writes without improving speed.
Filters for selective processing
The Filter dialog narrows what WinContig touches inside a large list. Exclusions can name files, folders or masks, and limits skip files above a set size, files with only a few fragments, or files whose fragments are already large.
Disk checks and clean-up before moving files
By default, WinContig checks the volume for file system errors before defragmenting, using the Windows check disk function. The same dialog shows drive usage and S.M.A.R.T. attributes such as temperature and powered-on hours. A clean-up step can then delete temporary files and empty the Recycle Bin, or launch an external cleaner. Both steps can run automatically, ask first or be turned off.
Automation and Explorer commands
Command-line switches let WinContig analyze or defragment folders, filter by file type, load a profile, choose a disk zone and run silently. Jobs therefore fit into batch files or Windows Task Scheduler, with exit codes reporting the result. After a job, the program can close or shut down, restart or put the computer to sleep. It can also skip defragmentation on battery power.
An optional shell extension adds Analyze with WinContig and Defragment with WinContig to the File Explorer context menu.




