How to clean a MacBook keyboard

Laptop cleaning up. Service for cleaning notebook screen, keyboard, case. Cleaning accessories: brush, cloth, spray. Computer monitor, display care.
(Image credit: Iuliia Pilipeichenko via Shutterstuck)

Whether you’ve got a problem with stubborn, sticky keys, or you’ve just decided to give it a clean and want to keep it in tip-top shape, cleaning your laptop keyboard is a must.

Even the best MacBooks are susceptible to dust, crumbs from delicious snacks, and general dirt that can build up over time. Taking a moment to give your keyboard a quick clean will help improve your laptop's lifespan and hopefully keep your typing experience feeling smooth.

In this guide, we’ll walk you through how to clean your MacBook keyboard effectively using compressed air and microfiber cloth. We’ll also be looking at what Apple recommends for getting rid of that nasty buildup - as well as what to avoid.

How to clean your MacBook keyboard: quick steps

  • Wipe down the keyboard with your microfiber cloth
  • Hold your laptop at an angle 
  • Use compressed air to spray the keyboard, going in a left-to-right motion 
  • Rotate your laptop a few times while doing this to ensure a thorough clean 

Tools and requirements

  • A MacBook (obviously) 
  • A can of compressed air 
  • A microfiber cloth
  • Diluted isopropyl solution (optional)

Step by step guide

1. How to prep your MacBook before cleaning

(Image: © Future / Lance Ulanoff)

Regardless of the model you own, whether it's an old-school 2016 MacBook Pro or the latest shiny M3 MacBook Air you'll be able to use this advice across devices with no issue. It'll also work for external keyboards or other laptops, not just Apple MacBooks.


But first, you'll need to get yourself a can of compressed air, which can easily be found on Amazon for just a few bucks. Once you've got your compressed air ready, you can then shut down and unplug your MacBook and give the keyboard an initial wipe down with the microfiber cloth to dislodge any larger pieces of debris.

2. Position your MacBook

(Image: © Apple )

Right! Now time for the fun part.


Tilt your MacBook so it's not flat but also not exactly vertical, at about a 75-degree angle as shown in the image above. The straw nozzle of the compressed air canister should be just under an inch away from the keyboard when you spray; not close enough to touch the actual keys, but not too far as to be completely ineffectual.


Don't turn the nozzle of the can at any strange angles, and avoid turning the can upside down or bending the straw in any way. 

Start spraying

(Image: © Apple)

Once you've got everything angled up, let it rip!

You're going to want to use the compressed air in steady left-to-right 'zig-zag' motions, doing one half of the keyboard at a time. Once you've done this you can then rotate your MacBook to its right side and spray the keyboard again from left to right.


Repeat this with the laptop turned onto its left side, then finally upside-down, so you're blasting the keys from every angle. That's it - you're done!

Final thoughts

If you have a particularly sticky key or a really grimy build-up that might need a bit more work, Apple also suggests use wiping the keyboard with isopropyl or ethyl alcohol, or even a disinfecting wipe. Just be sure you're not using anything with bleach in it, as this could damage and discolor the keycaps.

If you're planning to use alcohol-based cleaners to give your laptop an antibacterial deep clean, be sure to check the concentration first. 99.9% isopropyl is commonly available, but it may be too harsh and could potentially damage your system. Dilute it with purified water, aiming for about 60-70% strength - this can actually make it even more effective at cleaning, as the water slows the evaporation rate of the alcohol and gives it more contact time with dirt and bacteria.

Other general tips from Apple to avoid damaging your MacBook include not wiping too aggressively, not holding the compressed air nozzle too close, and making sure you don't get any moisture into openings (like the ports) when wiping it down.

TOPICS
Muskaan Saxena
Computing Staff Writer

Muskaan is TechRadar’s UK-based Computing writer. She has always been a passionate writer and has had her creative work published in several literary journals and magazines. Her debut into the writing world was a poem published in The Times of Zambia, on the subject of sunflowers and the insignificance of human existence in comparison. Growing up in Zambia, Muskaan was fascinated with technology, especially computers, and she's joined TechRadar to write about the latest GPUs, laptops and recently anything AI related. If you've got questions, moral concerns or just an interest in anything ChatGPT or general AI, you're in the right place. Muskaan also somehow managed to install a game on her work MacBook's Touch Bar, without the IT department finding out (yet).

Read more
AirPods Pro Review
Apple has quietly updated its guidance on how to clean your AirPods, and suggests you buy a kit… from Belkin
Google Pixel Buds Pro 2
Cleaned your Pixel Buds Pro 2 recently? If not, you might be getting worse sound
One of the best keyboard picks against a techradar background
The best keyboard in 2025: our picks for typing and gaming
Three Apple MacBook models on a pink background
The best MacBook deals in March 2025
Apple's Craig Federighi opens a MacBook Air laptop at Apple's November 2020 Apple silicon launch event.
Sick of your MacBook starting when you open the lid? Apple has just revealed a fix
Apple MacBook Air 13-inch (M2)
Amazon has some of the best MacBook Air deals I've seen since Black Friday
Latest in Macbooks
Three angles of the Apple MacBook Air 15-inch M4 laptop above a desk
Apple MacBook Air 15-inch (M4) review roundup – should you buy Apple's new lightweight laptop?
Apple MacBook Air M3 on yellow background with lowest price text overlay
Need a new MacBook Air? Well I've found 9 discounts you'll not want to miss, including a MacBook Air M4 Amazon deal
The MacBook Air 13-inch (M2) on a pink background with text saying Big Savings next to it.
Trust me – don’t bother buying any other laptop while the M2 MacBook Air is at this incredible price for Amazon’s Spring Sale
Image of M4 MacBook Pro
Apple MacBooks are in the spotlight during Amazon's Spring Sale: you can save up to $400 right now
MacBook Air M4 on an orange background
The all-new MacBook Air has already got a very early price cut at Amazon
The MacBook Air 13-inch (M2) on a pink background with text saying Big Savings next to it.
The MacBook Air M2 has a massive price cut thanks to the M4 launch
Latest in How Tos
Computer memory RAM on motherboard background
How to enable XMP
Person using a laptop.
How to check battery health of a laptop
Cheerful Female Gamer Playing Online Video Game on Personal Computer
How to quickly optimize your PC for gaming
Mobile phone with logo of video game distribution platform Steam operated by Valve on screen in front of web page
How to gift a game on Steam
Venezuela's forward #09 Jhonder Cadiz celebrates after scoring during the 2026 FIFA World Cup South American qualifiers football match between Ecuador and Venezuela, at the Rodrigo Paz Delgado stadium in Quito, on March 21, 2025 ahead of Venezuela vs Peru
Venezuela vs Peru live stream: how to watch today's FIFA World Cup 2026 qualifier anywhere online
The cast of Alone Australia season 3, standing in a knee-high body of water
How to watch Alone Australia season 3 online – stream the survival show from anywhere