Does your Mac have a cleaning mode?

No. macOS has no built-in cleaning mode, so anything you press or touch while you wipe your Mac still does something. Apple's advice is to shut it down first. If you'd rather not, a cleaning mode app blacks out the screen and locks the keyboard and trackpad until you're done.

What a cleaning mode does

A cleaning mode stops your Mac from reacting while you clean it. A good one does four things:

  • Ignores every key, including shortcuts, volume, brightness and media keys.
  • Ignores the trackpad and mouse: clicks, scrolling, swipes and gestures.
  • Blacks out the screen, so dust and fingerprints are easy to see.
  • Gets you out easily when you're done, without needing the thing you just locked.

What macOS gives you instead

None of the built-in options is a real cleaning mode:

  • Shut down. Works, and it's what Apple recommends for a deep clean. But you close everything, and on many MacBooks pressing a key or opening the lid starts it up again.
  • Lock Screen. Doesn't block the keyboard. Wiping the keys types into the password field, and too many wrong attempts can make your Mac wait before you can try again.
  • Sleep. Any key or click wakes your Mac back up.
  • Turn off an external keyboard. Works for a Magic Keyboard with a power switch, but not for a MacBook's built-in keyboard or trackpad.

How to add a cleaning mode to your Mac

Cleaning Mode is a free menu bar app that does exactly this. Setup takes about two minutes:

  1. Download Cleaning Mode and drag it into your Applications folder.
  2. Open it and create a free account with Google or your email.
  3. Allow Accessibility in System Settings when it asks. macOS requires this for any app that can block the keyboard and trackpad.
  4. Start it: click the keyboard icon in the menu bar, then Start Cleaning Mode. The screen goes black and nothing you press or touch does anything.
  5. Type “open” on the keyboard when you're done. Your Mac is back exactly as you left it.

Is it safe?

Cleaning Mode turns itself off whenever your Mac sleeps, locks or starts the screen saver, so closing the lid always gets you out. It only uses the Accessibility permission while it's on, and nothing you type is saved or sent anywhere. Caps Lock is put back the way it was.

It doesn't make your Mac waterproof. Use a cloth that's barely damp, and if anything gets spilled, shut down and unplug right away.

Questions

Does Apple have a keyboard cleaning mode?

No. macOS has no setting that locks the keyboard and trackpad for cleaning. Apple's own guidance is to shut down and unplug your Mac before you clean it.

Is a cleaning mode the same as a Mac cleaner app?

No. Apps like CleanMyMac clear out files to free up space. A cleaning mode is for physically cleaning your Mac: it locks the keyboard and trackpad so you can wipe them.

Does it work with external keyboards, mice and displays?

Yes. Cleaning Mode blocks input from every keyboard, trackpad and mouse connected to your Mac, and blacks out every display.

Is Cleaning Mode free?

Yes. It's free with an account, on any Mac with macOS 13 or later.