Don't bother to defrag an SSD. There are no benefits in doing so, and no performance loss in not doing so. That is my personal experience. My SSD has never been defragged, yet still performs like it did on day 1. I'm sure this is the experience of many others too. Windows does the optimization routinely and automatically, so no user input is required. Your energy is better spent on other things, but not this.
This is another change that's of the "when the technology changes, so do the practices" category.
You've already been given lots of good advice and @SpareChange put it most succinctly.
I don't know of a single OS, including Windows 7 and later, that is not aware of the technology of the disk drives being used and which does not pick and routinely schedule the correct maintenance technique - defragmentation for HDDs and Trimming/Optimization for SSDs - on its own.
I haven't run a manual defrag on any permanently installed HDD in many years now because the OS already does that on a routine basis. The same is true for optimizing an SSD.
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!