Skip to main content

How-To: Clean and speed up your Mac with free, trustworthy downloads

“My Mac used to be fast, but now it’s running so slow.” I’ve heard many versions of this complaint, and they’re always factually true, not just opinions: Macs do become sluggish over time, even if all of their chips and hard drives are working like new.

I’ve devoted several columns to hardware solutions — replacing old hard drives with fast new SSDs, adding more RAM, and increasing storage capacity using an external drive — but there are software solutions, too. Even die-hard Apple fans will admit that Macs typically run new OS X versions better (faster, and with fewer bugs) if you start with a clean slate: completely wipe your hard drive, do a fresh install of the latest OS X release, and restore only the files you need. That’s not as hard as it sounds, but it’s a radical and fairly time-consuming solution.

This How-To article offers a simpler alternative. First, find and delete enough files to leave your Mac at least 50GB of free storage capacity — enough room for the Mac to work without pausing to manage its hard drive space. Next, cleanse the cruft OS X builds up in the background as you use your computer. Below, I’ll show you how two completely free Mac programs, GrandPerspective and OnyX, will do all the heavy lifting for you. GrandPerspective offers a highly visual display of what’s taking up space on your Mac; Onyx cleans up the Mac files you’d be afraid to touch yourself…

Step One: Don’t Be Surprised By This OS X Warning

In the name of security (and popularizing the Mac App Store), Apple introduced a new dialog box several years ago, warning users the first time they click on an app from “an unidentified developer.” This warning has probably stopped some people from opening malware, but it also blocks completely safe apps by trustworthy developers who haven’t sought Apple’s approval.

For most people, the right solution isn’t to disable this security feature. Instead, you should manually authorize each “unidentified developer” app the first time it launches. The pictures above show how this is done: after you get the warning dialog, go to the Apple menu, pick System Preferences, select the Security & Privacy icon, and hit the Open Anyway button. Your app will pop open, and you won’t see Apple’s warning dialog again unless you download an updated version of the app later.

Alternately — thanks to readers Adam and Peskeguy for this tip! — you can just right-click on the app icon, choose Open, then tap the Open button to achieve the same result. OS X will tell you that opening the app “will always allow it to run on this Mac,” without disabling security for anything else.

Step Two: Download GrandPerspective + OnyX For Free

This is where to download GrandPerspective by Eriban Software. It’s not a beautiful web site, and my link will take you to the most recent version, which is several years old. But the app still works perfectly under OS X Yosemite, and costs nothing. (If you’d rather pay for a prettier and more frequently updated app that does the same thing, DaisyDisk from Software Ambience is $10 in the Mac App Store.)

Here’s the link to OnyX by Titanium Software. Titanium offers individually optimized OnyX versions for every version of OS X from 10.2 to 10.10. As they say, “There is a specific version of OnyX for each major version of the system. Use the specific version, and don’t try to use a non-compatible version.” When a new version of OS X comes out, just revisit the OnyX site and grab the latest release. Every version’s free, and very small, so you aren’t wasting storage space downloading whichever one you need. (A paid alternative to OnyX, Cocktail by Maintain, offers similar functionality for $19.)

Once you’ve downloaded each app, look in your Mac’s Downloads folder (typically next to your Mac’s trash can on the desktop’s dock), click on OnyX.dmg and GrandPerspective-xxxx.dmg, and drag/drop each app icon into your Applications folder. When you double-click on the app to open it, you’ll get the security warning I mentioned above. Follow the steps to authorize them, and you’re ready to start cleaning your Mac.

Step 3: Run GrandPerspective And Free Up Your Hard Drive

While GrandPerspective doesn’t hold your hand through the process of scanning your hard disk’s files, it’s not hard to use. Open the app, go to the File menu at the top of the screen, and select Scan Folder. Under your Devices list, choose your computer’s name, then the name of your hard disk (typically Macintosh HD). Then hit the Scan button — that’s it.

After several minutes, a window similar to this will appear, and you’ll probably wonder what this series of shaded blocks is supposed to mean. Float your arrow cursor over the blocks and you’ll begin to see the line of text below them change as you move. That’s GrandPerspective’s way of saying, “this is all the stuff that’s on your hard drive, sorted by size. The really big things are taking up a lot of space; the really small things (organized by folder) are taking less space individually but plenty of space collectively. That one line of text at the bottom is the name of the individual file the very tip of your arrow cursor is touching right now.” For reference, the giant blocks above are my Aperture photo collections and Final Cut Pro video content. If I deleted them (or better yet moved them to a reliable external hard drive), I could reclaim 350GB of storage space in minutes.

If you make the GrandPerspective window larger, you can see the tens of thousands of files on your Mac even more clearly. But in all honesty, anything that you need to zoom in to see is probably not individually worth worrying about. As its name suggests, GrandPerspective instead gives you a sense of the big picture folders that are taking up space. The beige block above is my Mail folder, and the highlighted collection of boxes to the left are “MobileSync/Backup” folders — backups of iOS devices stored by iTunes. If I wanted to delete old emails, I could save around 35GB of space; deleting old iTunes device backups would save around 45GB. The greenish blocks to the right are backups of iOS applications, taking up over 54GB of space. Of course, you’ll see different types of things on your hard drive.

GrandPerspective can also help you perform practical sorting of your hard drive’s content. Press the Drawer button at the top right of the window, choose the Display tab, and tell the app to “Color by” a filter such as “Last access,” which uses color to show you items that haven’t been used in weeks, months, or years. You can also choose to color by file extensions, folders, or file types, amongst other options, as well as picking the color palette you prefer.

The Focus tab in the Drawer is used in conjunction with the Focus buttons at the top left of the window. Pressing the button with arrows pointing out will change the “how much space is being used” indicator at the bottom of the window and inside the “Selected package” part of the Drawer to focus on folders or top-level folders rather than individual files. Pressing the button with arrows pointing in focuses on the specific file that’s taking up space. You can right-click on any file to “Reveal in Finder” (or do so with the Reveal button at the top of the window), and manually delete it. GrandPerspective disables in-app deletion by default, but it can be turned on under Preferences, either for files alone, or for both files and folders.

It’s entirely up to you to decide what to delete from your hard drive to make space, but if your drive is like mine, you’ll find a lot of files that really don’t need to be there. If you’re an iTunes video customer, you could save space by removing files that you can stream for free from iTunes in the Cloud; users of GarageBand and Logic might be able to get rid of big packs of audio samples that aren’t needed; backups of old iOS devices and easily re-downloaded apps could be tossed out, too. You decide what’s best for your needs.

Step 4: Run OnyX, Your Mac’s Silent Maid

OnyX is to Macs what maids are to hotels: silent restorers of “the way things are supposed to be.” There are hundreds of hidden files on your Mac that you have no idea are being created, changed, and sometimes deleted in the background while you’re working; thousands of other files may have hidden settings called permissions that can be screwed up, and thereby screw up your Mac when you try to open them. OnyX knows how to clean everything up.

Unlike GrandPerspective, OnyX is highly automated. Each time you load it, it will ask to check your hard drive’s structure to make sure it’s OK — if it’s not (a rarity), there might be something wrong enough to consider replacing the drive in the near future. Most of the time, though, it’ll be fine, and you’ll only need to use one of the buttons in the window it creates: Automation.

There are a lot of boxes to check here, but OnyX is set up by default with safe choices, so all you need to do is hit the Execute button at the bottom of the window. You can play with the boxes if you want, turning things off or on, but the standard maintenance, rebuilding, and cleaning tasks are solid. Leave them be, hit Execute, and there’s nothing more you need to do than let OnyX close your currently-running apps, perform its tasks, then restart your Mac. In some cases, you’ll see a dramatic speed improvement immediately after the restart.

But if you want to dive deeper with OnyX, you can. A Maintenance tab lets you independently run disk verification, permissions, scripts, and rebuilding tasks. Cleaning lets you make granular choices as to what types of cached files get deleted in bulk across your hard drive. Utilities lets you show and hide individual files, folders, and applications, as well as examining installation packages, and easily accessing obscure built-in Mac utilities.

Parameters has some of OnyX’s best features. Using the tabs inside, you can make all sorts of secretly available customizations to the way your Mac boots (say, startup sound or no startup sound), the way apps such as Safari and iTunes work, how screenshots get captured, and much, much more. These are little shortcuts for power users, and if you want to explore them, you’ll find a lot of ways to eliminate dialog boxes and button presses that slow your Mac down unnecessarily.

Just be careful playing with these settings. They’re helpful and can really improve your Mac’s performance, but if you don’t know what a given setting is supposed to do, you’re probably best off not changing it.

More Great Ways To Improve Your Mac

To make the most of your Mac (or pretty much any other Apple device), I’ve written quite a few How-To and Best of guides, as well as reviews of worthwhile accessories. Read more of my guides and reviews for 9to5Mac here (and don’t forget to click on Older Posts at the bottom of the page to see everything)!

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

  1. thejuanald - 10 years ago

    Weird, it seems like Macs are PCs that have similar issues to Windows machines. Don’t let Apple diehards read this.

    I will say that my macbook Air has chugged along much better than my macbook pro before it. The macbook pro had a litany of issues of slowing down within a week of a fresh install.

    • Jeremy Horwitz - 10 years ago

      Well, they both have hard drives inside that store files, and those files sometimes become numerous and large. Impossible to get away from those sorts of “issues.” :)

      But the last time I actively used a PC, I couldn’t go two days without having to restart the machine (or accept a full-system crash), whereas my Macs routinely go for weeks or months without needing a restart.

      • dm619 - 10 years ago

        it’s wired, my windows 7 pc at work normally only manually restart 1 time at the end of the year. the other restart all caused by power shut down.

      • thejuanald - 10 years ago

        It’s funny, I haven’t restarted my Surface Pro 2 in at least a month and I’ve been keeping up with updates, but on my current macbook air, I have so many notifications popping up, nearly every day to restart from some update.

    • smithphilip1 - 10 years ago

      I find OS X much better than Windows. However problems are mostly due to poor housekeeping of your files and applications either operating system.

      • thejuanald - 10 years ago

        I’m very good about keeping my file system neat in Windows, when I switched to Mac, everything was weirdly convoluted. Like photos in the previous iPhoto. Why was it such a problem for me to keep my files in specific folders that I want? Why did it have to have nonsensical file hierarchy? The same goes with a lot of programs on my Mac.

  2. Omnidisk Sweeper is faster than GrandPerspective and free as well : https://www.omnigroup.com/download/latest/OmniDiskSweeper

  3. krikaoli - 10 years ago

    This post has gone to my favorites, very very very useful. Thank you!

  4. bunim1 - 10 years ago

    How does this compare to DISK INVENTORY X ?

    • Jeremy Horwitz - 10 years ago

      They look similar, though Disk Inventory X hasn’t been updated since 2005 and OS X 10.3?

    • Josh Lambert - 10 years ago

      I have tried both, yet I seem to like Disk Inventory X a bit better. I like the drive list view and how it shows the space used for each folder/file along with the graphical view.

  5. zBrain (@joeregular) - 10 years ago

    personally, i use this free app, from omnigroup, OmniSweeper.

    https://www.omnigroup.com/more

    it is free, and i see the largest files and folders to the smallest files and folders. obviously, you need to now what you can delete and what not.

  6. ikir - 10 years ago

    Most time removing all the trojan and trash software is just what it is needed.. i work in support and most users on every platform are idiots. I see most macs full with trojans.

    • macsince1985 - 10 years ago

      So how do you remove trojans and trash software? — An Idiot

    • wpcrumbley - 9 years ago

      That’s not a fair statement. You are correct most macs are probably full of Trojans, but the part you are leaving out is those Trojans were designed to effect Windows so they do not effect macs.

  7. rahhbriley - 10 years ago

    Extra Protip: Never ever ever ever ever…..EVER install MacKeeper. If you have it…research how to get rid of that sh*t.

    • nekomichikun - 10 years ago

      Yeah, that thing’s a joke. They didn’t even program the loading bar correctly and it extended to 10,050% when scanning.

  8. Adam (@AdamOttkePhoto) - 10 years ago

    Tip: An easier way to “okay” or open an app from an unidentified developer for the first time is to right click on it, hold down Option/alt, and THEN click “Open.” The Open option won’t actually change in looks or anything when you hold Option/alt, but it makes a difference. When you do it this way, you have an option to actually open the app. OS X will remember that for the future, so you also only have to do this once every time you update to a new version, and that’s it…

    • peskeguy - 10 years ago

      You don’t actually need to press option for this to work.
      Just right-click and then click Open and it gives you the option to bypass gatekeeper security and will remember it for that app.

    • Jeremy Horwitz - 10 years ago

      Thank you both for this tip. I’ve added it to the article!

  9. Matt P. (@mateus109) - 10 years ago

    You didn’t mention EtreCheck. If you only choose to use one tool, use EtreCheck, it’s an essential! http://www.etresoft.com/etrecheck

  10. Whitney Kremer - 10 years ago

    Anyone using Techtool? I used it maybe 10-15 years ago, and it often valid problems. Now I’ve got a 2009 Mac Pro with a newly installed startup HD. I’m getting a lot of beachball lockups of apps or the entire system, sometimes it just goes to black screen on startup. Sounds to me like a motherboard or memory problem.

  11. Filipe Lima - 10 years ago

    Amazing!! I just freed 32gb (on my 128gb mba). Thank you!!!

  12. “Clean my mac” does a decent job getting rid of all unwanted files,freeing lots of space.Epically i am surprised to see how much iPhoto duplicates are on my HD consuming gigs of storage. Removing unwanted language files also frees up space.

  13. Rex! (@Rexaford) - 10 years ago

    I think you’re omitting two important points:
    1) Macs do *not* slow with age, unless your hard drive is very full or there is a problem like the cache overruns you mentioned. Much, much more frequently, it just seems slower because the tasks are more difficult. As an example, opening iPhoto will take longer to open after 3 years of use for no other reason than there are 3 more years of photos cataloged.

    2) You are doing a disservice to people by suggesting they move their data to a ‘reliable’ external drive. All drives are reliable until they stop working, which all of them will. But an internal drive people might already be backing up with time capsule/machine, whereas an external one would not backup automatically. Way, way too many people are under the impression that external drives are more reliable for some reason, and never think to back them up. You simply must remind people to backup in an article such as this.

    • Dr. Light (@pc_doc80) - 10 years ago

      Hard Drives can slowly go bad over time. Your hard drive can be still working and not be reliable. Bad sectors are a common problem and lead to excessive wear on the hard drive. This is true of internal and external drives. People should always be backing up their data. However, this article is not able making sure people back up properly, so you cant fault the writer for not including that in his article.

  14. Chris Cooper - 10 years ago

    I ran through both of these yesterday and somehow all my itunes music was gone. that was a fun afternoon of restoring it from my time machine backup….

  15. Josip Ricov (@Josip_R) - 10 years ago

    No need for this as my MacBook Pro 15″ Retina works damn fast. I am very happy with it. :D

  16. Alex Mârzan - 10 years ago

    DiskInventory X with no problem on 10.10.3

  17. oshinoshi (@oshinoshi) - 10 years ago

    Onyx. I followed your advice, installed Onyx on my Mac and started it according to this article.
    After restart all my desktop items disappeared (Finder showed that they are still in the folder). Finder started working in “Simple” mode, and the computer started working strangely, like I had a virus.
    Restart didn’t help, neither did Disk Utility.
    The only thing that helped was the Time Machine, which initially also didn’t start (“You have no permission” But wait, I’m the administrator of this Mac?!) and after number of attempts and restarts I eventually managed to restore the system from previous backup.

    So, yeah, what’s so special about Onyx, apart from making your life excited in a special way??

  18. jessicanewworld - 10 years ago

    How about MacCare? It scans every file on Mac to detect junks and malware completely, uninstall Apps and Plug-in, monitor web traffic and release RAM. What’s more, it is able to free up iOS device space. http://maccaresoft.com/

  19. Felipe Rodrigues Sousa - 9 years ago

    Seriously,

    I couldn’t believe it! Regained 20gb by deleting old iphone backups and some other stuff I didn’t even know existed, but after running onyx and after the restart, it seems it is just a little bit slower than it was before, for exemple when launching apps.

  20. Emma Hu - 9 years ago

    My Mac gets slower and slower, so I’m looking for clean software for Mac OS X, and happened to see this article, very helpful. But I’m a lazy guy and want to find a more convenient tool. I have to say another free clean softwre-MacClean, is extremely awesome! I just use it clean all my junk files in side Mac OS X, and other maintenance utilities like Old&Large files, Duplicates files, Language files, extensions etc, it can sort them with organised and you just need to delete what you want just by 1-click. very easy to use and provide great clean effect. Now, my Mac runs faster just like new. Just recommend it to those who have the same demand. http://www.imobie.com/macclean/

  21. saib - 9 years ago

    System slows due to duplicate files in system Use “DuplicateFilesDeleter” clean system by deleting duplicates files and boost the speed

  22. Peter Fritz Walter - 9 years ago

    The Titanum OnyX site does not open! (Safari cannot find the server). Nice surprise! French product …

  23. douglasgordon304 - 9 years ago

    Hi Jeremy Horwitz,
    In order to Speed up my slow MacBook Pro, I have used many tips and tricks. But, didn’t find anyone through which, I can un-install the hidden (useless) files, which are consuming a lot of my MacBook resources. Can you please tell me how I can remove those hidden files which exist in my Mac OS X (Yosemite)?

  24. George Pollen - 9 years ago

    How about these developers get an Apple developer account for a measly $100/year?
    @9to5Mac: you’ve just educated and familiarized a lot of users with how to run malware on their computer, making it far more likely to happen. Social engineering is the main route to getting malware on a Mac.

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications