Disk Defragmenter
Download nowDisk Defragmenter is the built-in Windows tool that reorganizes fragmented data on hard drives and optimizes SSDs through TRIM.
Updated August 9, 2026 · PC Utility Hub Editorial Team
What defragmentation does
On a traditional spinning hard disk drive (HDD), files can become fragmented into scattered pieces across the platter as they're written, deleted, and rewritten over time. A defragmenter rearranges these fragments so files sit in contiguous blocks, reducing the mechanical head movement needed to read them and improving performance.
Renamed to Optimize Drives
Since Windows 8, the tool has been officially called "Optimize Drives" (dfrgui.exe), though many people still search for it as Disk Defragmenter or hard disk defragmenter. It automatically detects the drive type and applies the correct optimization: full defragmentation for HDDs, TRIM for SSDs.
Do SSDs need defragmenting?
No — traditional defragmentation on an SSD provides no performance benefit and adds unnecessary write cycles. Windows instead runs TRIM, which tells the SSD which blocks are no longer in use so it can manage them internally for consistent performance and longevity.
Windows 11/10 correctly detects SSDs and switches to TRIM automatically; you don't need to configure anything manually in most cases.
When defragmentation still matters
- Older mechanical hard drives (HDDs) used for bulk or archival storage.
- External USB hard drives that see heavy file churn.
- Systems where a scheduled optimization task was disabled and hasn't run in a long time.
- Not applicable to SSDs, NVMe drives, or virtual disks backed by SSD storage.
Frequently asked questions
- Is Disk Defragmenter still in Windows 11?
- Yes, under the name "Defragment and Optimize Drives" (dfrgui.exe), accessible from search or drive Properties.
- Will defragmenting an SSD damage it?
- It won't cause immediate harm, but it's pointless and adds unnecessary write wear, which is why Windows uses TRIM for SSDs instead.
- How often should I defragment an HDD?
- Windows schedules this automatically (weekly by default); manual defragmentation is rarely needed unless the schedule was disabled.
Related pages
- Defragment & Optimize DrivesUse dfrgui or the defrag command to defragment HDDs and TRIM SSDs manually.
- CHKDSKOverview of the chkdsk utility, its switches, and how it fits into Windows disk maintenance.
- Disk CleanupThe classic Windows disk cleanup program, still available in Windows 10 and 11, for reclaiming drive space.
- PC Maintenance ChecklistA recurring checklist of built-in Windows tools for disk, update, and drive maintenance.