How to clean a MacBook keyboard without turning it off

Lock the keyboard and trackpad first, so wiping doesn't type, click or open anything. Then clear the crumbs, wipe the keys and trackpad with a barely damp, lint-free cloth and let them dry. It takes about five minutes.

What you need

  • A soft, lint-free cloth, like a microfiber cloth.
  • Water. For grime or to disinfect: 70% isopropyl alcohol wipes, 75% ethyl alcohol wipes or Clorox Disinfecting Wipes, which Apple says are fine on hard, nonporous surfaces like the keys.
  • Optional: a can of compressed air for crumbs under the keys.

Step by step

  1. Lock the keyboard and trackpad. Start Cleaning Mode from the menu bar. The screen goes black and nothing you press or touch registers. If you plan to use more than a barely damp cloth, shut down and unplug your Mac instead.
  2. Clear the crumbs. Hold your MacBook open at an angle and give the keyboard short bursts of compressed air, working from left to right. Don't tip the can upside down.
  3. Wipe the keys. Dampen the cloth lightly with water and wipe each row of keys. For greasy keys or to disinfect, use an alcohol wipe. Squeeze out any extra liquid first.
  4. Wipe the trackpad. Use the same cloth, edge to edge. With Cleaning Mode on, clicks and gestures do nothing, so you can press as you wipe.
  5. Dry and unlock. Go over everything with a dry part of the cloth, wait a moment, then type “open” to get your Mac back.

What to avoid

  • Spraying anything directly onto the keyboard.
  • Bleach, hydrogen peroxide and abrasive cleaners.
  • Soaking the cloth, or letting liquid get into openings.
  • Prying off keycaps. They're easy to break on modern MacBooks.

If something spills

Don't keep cleaning. Shut down, unplug the power adapter and turn the MacBook upside down on a towel, then contact Apple or an Apple Authorized Service Provider. A cleaning mode is for wiping, not for spills.

Questions

Can I clean my MacBook keyboard while it's on?

Yes, as long as the keyboard and trackpad are locked so wiping doesn't type or click anything. Cleaning Mode does that. Apple recommends shutting down before cleaning, so do that if you're using more than a barely damp cloth.

Can I use Clorox wipes on a MacBook keyboard?

Apple says Clorox Disinfecting Wipes, 70% isopropyl alcohol and 75% ethyl alcohol wipes are fine on hard, nonporous surfaces like the keys. Don't use them on fabric or leather, and never use bleach.

How often should I clean my MacBook keyboard?

A quick wipe once a week keeps grime from building up. Clear crumbs whenever keys start to feel sticky.

How do I clean a Magic Keyboard?

The same way. Switch it off or start Cleaning Mode, which blocks every keyboard connected to your Mac, then wipe it with a barely damp, lint-free cloth.