How to clean a laptop keyboard

How to clean a laptop keyboard
(Image credit: Sofia Wyciślik-Wilson)

You touch your keyboard more than just about any other part of your laptop (especially if you use a separate mouse rather than the touchpad), so it will get dirty. A build-up of muck and grime might be inevitable, but how do you clean a laptop keyboard? While cleaning your keyboard is neither difficult nor time-consuming, it's smart to know the best approach to avoid potentially damaging your device.

The most important thing to mention is the need to take care. Although liquid can be involved in the cleaning process, remember that moisture can fry even the best laptops - so be certain to use as little as possible, apply it correctly, and exercise caution at all times. With that warning out of the way, let's take a look at how to clean a laptop keyboard.

Tools and Requirements

  • Microfiber cloth
  • Compressed air
  • Isopropyl alcohol

Quick Steps

  • Remove debris from under keys
  • Wipe away dust
  • Give keys a deep clean

Step by step guide

1. Power down and unplug

(Image: © Sofia Wyciślik-Wilson)

To start with, completely shut down your laptop and disconnect the power cable; there are a couple of reasons for doing this. Firstly, you want to avoid the risk of electrocution as there are liquids involved in the cleaning process, albeit it very small qualities. Secondly, if your laptop is running when you clean the keyboard, you could end up deleting files or changing settings as you press the keys.


If your laptop has a removable battery, do not remove it. While this might seem like an obvious move, it's actually more likely to cause issues, since you'll be exposing the power connector.

2. Gently shake out loose debris

(Image: © Sofia Wyciślik-Wilson)

Perhaps the easiest way to start the laptop keyboard cleaning process is getting rid of crumbs and other larger pieces of debris that have accumulated under the keys. Simply open up your laptop and then flip it upside down before giving it a gentle shake and a wiggle. You can also gently pat the bottom of the device to encourage things to become dislodged. This is worth doing regularly if you often eat while using your laptop, even if you don't clean it fully; a tiny piece of food becoming lodged under a keycap is liable to cause problems.

3. Blow, or suck, out dirt

(Image: © Sofia Wyciślik-Wilson)

A can of compressed air – or, at a push, a hair dryer on a cold setting – is a great way to blast away other debris that has not fallen out with shaking. If you have no way of blowing away dirt (although cans of compressed air are pretty cheap on Amazon), you can use a vacuum cleaner with a brush attachment; this can be your regular home vacuum (assuming it is clean), or a smaller one designed for use in the car.

4. Clean away grease

(Image: © Sofia Wyciślik-Wilson)

The keys of a keyboard unavoidably gather a build of grease and oils from being touched. You may have luck in removing much or all of this using nothing more than a microfiber cloth – be sure not to use any sort of cleaning cloth that could shed fibers. For stubborn areas of dirt, very slightly dampen your microfiber cloth with isopropyl alcohol, but always use the absolute minimum, and do not spray or drip any sort of cleaning product onto the keyboard directly.


If you have a high-concentration (90% or above) isopropyl, consider diluting it a little with purified water - roughly two parts alcohol to one part water is sufficient. A concentration in the 60-70% range is ideal; this helps slow the evaporation of the isopropyl to give it more contact time with the surface, but won't affect its ability to kill common bacteria or dislodge grim. Always give your laptop keyboard plenty of time to dry before turning it back on.

5. Key removal

(Image: © Sofia Wyciślik-Wilson)

Some, but certainly not all, laptop keyboards can have their keycaps removed, which can be useful for intensive cleaning. You can usually find out whether the keycaps can be removed by checking the manufacturer's website or product manual. Some laptops may include a tool in the box for removing keycaps.


Removed keycaps can be deep cleaned (as they contain no electrical elements), and you'll also have the chance to clean beneath where the key usually sits. Gently replace keys when they are completely dry. Do not attempt to remove keys if you either don't know how to do it or you are uncertain whether it is possible with your laptop, as you may damage the keyboard.

Final Thoughts

In many ways, the techniques involved in cleaning a laptop keyboard are not really very far removed from cleaning any of the best keyboards or even cleaning your laptop screen – but there is one big difference. It's important to take care when cleaning any computer hardware, but this is especially true when it comes to laptops. While damaging a regular keyboard is a somewhat costly irritation, the money involved in replacing a laptop keyboard is far, far higher.

I've stressed the importance of being careful, but it really cannot be overstated. There is potential for a desktop keyboard to be an expensive thing to replace or repair, but it may not be even possible with your laptop. If you damage your keyboard, you could end up needing to replace your whole laptop. So take care, take your time, be gentle, and make absolutely sure that liquid doesn't end up where it shouldn't be.

You might also like

Sofia Elizabella Wyciślik-Wilson
Freelance writer

Sofia is a tech journalist who's been writing about software, hardware and the web for nearly 25 years – but still looks as youthful as ever! After years writing for magazines, her life moved online and remains fueled by technology, music and nature.

Having written for websites and magazines since 2000, producing a wide range of reviews, guides, tutorials, brochures, newsletters and more, she continues to write for diverse audiences, from computing newbies to advanced users and business clients. Always willing to try something new, she loves sharing new discoveries with others.

Sofia lives and breathes Windows, Android, iOS, macOS and just about anything with a power button, but her particular areas of interest include security, tweaking and privacy. Her other loves include walking, music, her two Malamutes and, of course, her wife and daughter.

You can find her on Twitter and Mastodon.

With contributions from
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
One of the best keyboard picks against a techradar background
The best keyboard in 2025: our picks for typing and gaming
Woman gaming on a computer at home
Got a new gaming PC for Christmas? Consider picking up one of these 5 fantastic gaming keyboards to make it even better
Windows 11 update with Task Manager menu
What is Task Manager in Windows 11?
Windows 11 working on a laptop PC
Windows 11 PC slow or low on storage? Bloatware could be to blame - here's how to find and remove it
Dell XPS 17 laptop in use on a wooden desk
Best laptop for writers in 2025: My top picks as a professional writer for almost 20 years
Latest in Windows
Xbox Wireless Controller
Microsoft is adding a powerful new feature for using Xbox controllers with Windows 11
Woman disgusted by her laptop
Embarrassing Windows 11 bug that deleted Copilot app is now fixed – but will anyone outside of Microsoft care?
Student sat at a desk with a laptop in a dormitory looking at a mobile phone
Windows 11 could eventually help you understand how fast your PC is - as well as offer tips for making your PC or laptop faster for free
Windows 10
Microsoft gets into the spam game by again emailing Windows 10 users to prod them to upgrade to Windows 11 – is the nagging going too far now?
Using Zipped files and folders in Windows 11
Hidden clues suggest Microsoft is moving another part of Windows 11’s Control Panel to the Settings app – and this time it’s mouse options
A woman sitting in a chair looking at a Windows 11 laptop
Microsoft is supercharging Windows 11’s voice commands on Copilot+ PCs with Snapdragon CPUs, and fine-tuning a few Recall features
Latest in How Tos
Smartphone with new logo X twitter app background. Application twitter old blue bird change X black and white new.
How to delete all your tweets on X
ChatGPT Voice mode
How to add ChatGPT or Gemini voice mode to your iPhone Action button (while you wait for Siri's big upgrade)
Marlow Murder Club S2
How to watch Marlow Murder Club season 2 online — stream now
TOLUCA, MEXICO - NOVEMBER 19: Raul Jimenez of Mexico reacts during the CONCACAF Nations League match between Mexico and Honduras at Nemesio Diez Stadium on November 19, 2024 in Toluca, Mexico. (Photo by Jonathan Mondragon/Jam Media/Getty Images)
Canada vs Mexico live stream: how to watch CONCACAF Nations League semi-final 2025 online for free today
Beibhinn Parsons #11 of Ireland races away with a rugby ball during the Ireland V Wales, Women's Six Nations Rugby match in 2024
Women’s Six Nations 2025: How to watch rugby live streams online from anywhere
Leaving Neverland 2: Surviving Michael Jackson
How to watch Leaving Neverland 2: Surviving Michael Jackson online and from anywhere, start time