How to Clean a Mac Keyboard

Maintain that keyboard and you'll be able to use it for years

What to Know

  • Surface grime: Unplug, turn on its side, and tap to dislodge debris. Wipe with a damp cloth. Use an alcohol-dampened swab for corners.
  • Deep clean: At an angle, spray canned air amid keys and from edge to edge. Use a canister/shop vac to gently remove remaining debris.
  • Bluetooth keyboard: Remove the batteries. Use canned air as above. Clean elements with a soft cloth dampened with isopropyl alcohol.

This article explains how to clean your Mac or MacBook keyboard so it stays crisp and responsive, whether you're doing a quick surface cleaning or a deeper scrub.

Gather Your Gear

Start by gathering your tools for the cleanup:

  • Canister or shop vac with a soft brush attachment
  • Old pantyhose (optional)
  • Lint-free cloth or paper towels
  • Cotton ear swabs
  • Isopropyl alcohol, 99% (available at most pharmacies)
  • Cloth or paper towels for the work surface
  • Canned air

How to Clean Surface Grime From Your Mac or MacBook Keyboard

Getting rid of the dirt and oils that accumulate over time keeps a keyboard or laptop looking new and prevents the grunge from creeping down into the keyboard's switches where it can do real damage.

  1. Unplug the keyboard or shut down the MacBook.

  2. Turn the keyboard or laptop key-side down and give it a good shake. To dislodge any loose debris from between the keys, tap the edges of the keyboard or laptop.

  3. Dampen a small area of a dry and clean lint-free cloth or paper towel. Then, gently wipe away the surface dirt and oils that accumulated on the keys. Clean between the keys, the space bar, and the trackpad. Turn the cloth or paper towel frequently so that you're removing dirt rather than pushing it around.

  4. Use an alcohol-dampened cotton swab to get at corners or small spaces or to loosen stubborn grime.

  5. When using isopropyl alcohol, less is more. Alcohol evaporates quickly, so if you keep swabs and paper towels only damp, you shouldn't need to dry off anything.

Deep Clean the Keyboard of Your Mac, MacBook, or MacBook Pro

When keys stick or debris is lodged under a key, do a deep cleaning.

  1. Disconnect the keyboard or shut down the laptop.

  2. Press each key to ensure that the keycaps are properly seated and snapped in place. This is also a good way to ensure that the action on the keys is consistent and that key travel isn't hindered by hidden debris.

  3. Turn the laptop or MacBook key-side down and give it a good shake. To dislodge any loose debris from between the keys, tap the edges of the keyboard or laptop. The object is to shake out as much of the dry and loose debris as possible.

  4. Hold the keyboard at an angle (Apple recommends 75 degrees for laptops). Then, spray the canned air in short bursts in the space between each row of keys. Work left to right, top to bottom, in a zigzag pattern.

    Canned air being used to clean a MacBook keyboard.

    Read the instructions when using canned air. Tipping the can during use may result in propellant spraying out of the can rather than air, which can harm delicate electronics.

  5. Turn the keyboard 90 degrees to the right and blow compressed air in short bursts from edge to edge.

    MacBook turn on its side, being cleaned with short bursts of canned air.
  6. Use a canister or shop vac with a soft brush attachment to gently brush along the keyboard or laptop to remove any remaining debris.

    If any keys are loose or have fallen off previously, cut the foot from a pair of pantyhose and slip it over the nozzle of the vacuum cleaner before turning on the vacuum. If a keycap comes loose from the suction of the vacuum cleaner, it is caught before traveling into the vacuum bag.

  7. Remove surface dirt and grime using the instructions above.

MacBook (2015 through 2017 models) and MacBook Pro (2016 to 2017 models) have an ultra-low profile key design that creates challenges for cleaning debris from under the keys. If your MacBook or MacBook Pro keyboard is acting weird—repeating letters or sticking keys—have it serviced under the Apple Keyboard Service Program.

How Do I Clean My Mac's Bluetooth Keyboard?

A Mac's no-cable Bluetooth keyboard is near indestructible. It will last for years with preventive maintenance and cleaning.

Apple's wireless Bluettoth peripherals, including Magic Keyboard, Magic Extended Keyboard, Mouse, and Magic Mouse

Here's what you need to know:

  1. Remove the Bluetooth keyboard's batteries if the batteries are removable. Removing the batteries ensures you don't accidentally power up the keyboard as you're cleaning it. The Apple Magic Keyboard doesn't have removable batteries but does have an on/off switch, so switch off the keyboard.

  2. Similar to how you clean a MacBook keyboard, hold the keyboard sideways (short side up) at an angle and use short bursts of compressed air to blow debris away from the keys. Move from top to bottom.

  3. Clean the keycaps, trackpad, and mouse base with a soft cloth dampened with a small amount of isopropyl alcohol. Take care to prevent moisture from entering any opening.

Are Clean Keyboards Necessary?

It hasn't been proven, but a computer with a clean keyboard seems to run faster in the same way a freshly washed car feels peppier.

Spending a few minutes of preventive cleaning time can make a difference in the performance of this essential part of your digital technology tools.

Before you clean a mess caused by a liquid spill on a Mac keyboard or MacBook, unplug the keyboard or shut down the laptop. Then, take it to an Apple Store or Apple Authorized Service Center. Powering up an expensive computer before it's been cleaned by a specialist could prove costly.

Was this page helpful?