How to clean your keyboard

Person placing a keycap back onto a keyboard's key switch
(Image credit: Future)

Figuring out how to clean your keyboard may be the last thing on your mind when you’ve just bought a shiny new laptop or typing peripheral. But every PC user knows that dirt and grime can pile up overtime, and eventually you’ll have to face the inevitable.

With keyboards, it’s even trickier. If you don’t already know how to do it, it can be tough to clean your keyboard properly with all its moving and electrical parts – not to mention, its nooks and crannies. It isn’t just a simple scrub and wipe job. You also have to be careful not to cause irreversible damage to your device. That’s on top of the fact that dirt and sebum stains can be surprisingly hard to rub off.

So, we're here to give you a hand with a few useful tips. Here's the rundown on how to clean your keyboard, whether you’re only after the usual everyday upkeep or a proper deep clean.

Steps for how to clean your keyboard

  • Unplug your keyboard, then flip it upside down to shake out any debris
  • Use compressed air to get rid of any stubborn stragglers
  • Pop the keycaps off and soak them in warm water
  • Carefully scrub your keycaps and keyboard chassis

Tools and requirements

  • Keyboard
  • Isopropyl alcohol
  • Compressed air or electric duster
  • Toothbrush or other non-abrasive brush
  • Cotton swab
  • Keycap remover

Step by step guide

1. Removing debris

Person using compressed air can to clean between the keys of a keyboard

(Image credit: Dust Off)

Everyday messes are unavoidable, especially if you’re used to snacking at your desk or having a meal while working. Unless you're really, really careful, your keyboard will see its share of food particles getting stuck under the keys. Here are a few things you can do when that happens:

1. Shake off loose debris
To remove loose debris, first unplug your keyboard from your computer or turn your laptop off. Then simply turn your keyboard upside down and carefully shake it until any trapped debris comes free. Make sure to shake your keyboard over a trash bag or somewhere easy to vacuum! 

2. Use compressed air
If you’ve got debris stuck between the keys and a simple shake isn’t enough, use a can of compressed air to knock it loose. You can find compressed air in most grocery stores and several online retailers like Amazon.

Not a big fan of empty cans and metal waste? You can also opt for an electric duster to blow a stream of concentrated air under those keycaps. It's a bit more of an upfront investment, but it won't run out.

3. Pop those keycaps and use a cotton swab

Removing the keycaps from your board can be a little intimidating if you've never done it before. But the best keyboards are designed with cleaning and customization in mind, meaning the keycaps are meant to come off.

Note: certain laptops, like newer MacBook Air models, have special key switches that can be damaged if removed improperly. Before you pop any keycaps off, look up your laptop model and determine if the key caps can be safely removed.

Once your keyboard is considerably lighter sans key caps, you can apply a small amount of isopropyl alcohol to a cotton swab and run it between the rows of key switches to get rid of any debris that refuses to leave its hidey hole.

2. Cleaning spills and sticky keys

Person typing with two hands on an RGB-enabled gaming keyboard

(Image credit: Future)

Beverage spills are even harder to deal with. But, don’t worry: just because you spilled liquid on your keyboard doesn’t mean you have to buy a new keyboard or laptop (as long as it still works).

1. Shake off liquid
Immediately turn off your laptop or unplug your keyboard if you spilled liquid on it to prevent damage to the internal components. Away from your other devices, turn your keyboard upside down, gently shake it, and keep it upside down for several minutes to get most of the liquid out. If your keyboard or laptop allows, prop it up at an angle over a paper towel to let the liquid spill out without having to hold it yourself. 

2. Clean with a lint-free cloth
After you've drained most of the liquid, use a clean microfiber cloth to blot out any remaining droplets (or any clean absorbent, non-abrasive material like a paper towel or soft t-shirt, if nothing else is available). Then, depending on the severity of the spill, leave the keyboard to dry completely for at least 24 hours – but preferably, up to 48 hours if you can spare it. Do all this while keeping the keyboard in its upside-down position.

3. Deal with those sticky keys
If you spilled any liquid other than water, make sure to check each key to see if it’s sticky. To clean sticky keys, first take a picture of your keyboard. This way you won't have to remember where the keys go when you reassemble them. With your photo taken, gently and carefully pop off the keycaps with a keycap remover - or a butter knife or flathead screwdriver if you don't have a keycap remover, but be extra careful using these! Try to pull the keys straight up rather than prying them off at an angle. If you’ve got a laptop, check with the manufacturer to double check that those keycaps are removable.

With the keycaps removed, place them in a bowl of warm water to soak. This will loosen any dirt, grime, or liquid clinging to the sides.

Using a clean microfiber cloth or cotton swab and some isopropyl alcohol diluted with warm water, gently scrub the stains away. For hard to reach spots on the keycaps, consider using a soft-bristled toothbrush. Drain your keycaps, then leave them out to dry completely on a towel before you place them back on.

3. Weekly maintenance

Person using both hands to type on a white chiclet keyboard

(Image credit: Shutterstock.com)

Cleaning your keyboard weekly is the best way to keep it tidy and avoid having to spend significantly more time deep cleaning your keyboard. Doing so will also keep it free of harmful microbes and viruses that could get you sick. Just remember to unplug your keyboard before cleaning.

1. Remove debris
Shake off loose debris or use compressed air between the keys to remove pieces of food, dust, and other particles. You might also consider investing in a mini keyboard vacuum cleaner, which lets you do this step faster and more efficiently. There are also sticky cleaning goo gels available that can be very effective.

2. Clean the keys
Using a cotton swab or microfiber cloth, remove the dirt and oils from your keycaps and between the keys with isopropyl alcohol – doing this weekly should prevent buildup as well as kill harmful germs. Dry thoroughly with a lint-free cloth or allow it to air dry completely. 

3. Use a keyboard cover

If you use a laptop, there's a good chance you can find a keyboard cover on Amazon or Best Buy to lay overtop the keys. This will prevent any crumbs or other debris from falling in between the keys, stopping the mess before it even starts. Plus, these are easily removeable, meaning you can just lift it up, walk to a trashcan, and shake it off. Easy as that.

4. Wash up before you sit down

Cleaning your hands is one of the best ways to clean your keyboard. Before you sit down to type away, give your hands a quick wash with soap and warm water to get rid of anything that may be on your fingers, including oils and grime. If washing your hands before you hop on the computer every time sound like an unreasonable chore, a bottle of hand sanitizer on your desk or in your laptop bag will go a very long way to keeping your keys nice and tidy. 

Final thoughts

Cleaning your keyboard is important - not only for aesthetic purposes, but also for the lifespan of the tech you spent your money on.

Thankfully, keeping your keys clean generally isn't too involved (unless you spilled a sticky liquid all over it!) As long as you have some isopropyl alcohol, which you can find in grocery stores or online for a few bucks a bottle, and a cotton swab or microfiber cloth, you can get the job done. Compressed air, either from a disposable can or an electric duster, can be a huge help in getting rid of any food, pet hair, or other debris trapped beneath the keys.

And it's always a good idea to look for preventative measures before relying on a solution; regular keyboard maintenance is the way to go. If you use a laptop, throw a keyboard cover on and watch your dirty keyboard woes melt away. 

Clean hands make a clean keyboard. Wash up with soap and warm water or rub a bit of hand sanitizer in before you type to keep dirt, grime, and oils off of your keys.

You might also like

Marcus Mears III
Computing Reviews and Buying Guides Editor

Marcus Mears III is the Computing Reviews and Buying Guides Editor at TechRadar. He's been covering the latest in consumer tech for over 5 years, and he's gone hands-on with everything from the M2 MacBook Air to Valve's Steam Deck. Marcus is an advocate for Right to Repair laws and believes everyone can benefit from getting under the hood of your daily-driver tech. He'll also beat you in Texas Hold 'Em, too.

Read more
One of the best keyboard picks against a techradar background
The best keyboard in 2025: our picks for typing and gaming
AirPods Pro Review
Apple has quietly updated its guidance on how to clean your AirPods, and suggests you buy a kit… from Belkin
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
Person vacuuming a rug
Why does my vacuum smell, and what can I do about it? We asked 4 experts
Rows of baked cookies displayed on a laptop monitor
Why should you clear your cache and cookies?
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
Latest in Keyboards
The Asus ROG Falchion Ace HFX keyboard
I’ve fallen in love with the Asus ROG Falchion Ace HFX 65% keyboard because of its brilliant touch bar and Hall effect keys
Logitech G915 X on desk with plant and pink wall in background
I spent several days with the Logitech G915 X Lightspeed TKL, and while it’s capable enough, it doesn’t best its rivals
black gaming keyboard against red background
Take $100 off one of the best Logitech gaming keyboards just in time for Presidents' Day
Lemokey L5 HE 8K on table with pink wall and plant in background
I tested the new Lemokey L5 HE 8K and while it offers plenty of analog adjustments, it doesn’t feel quite as good as its rivals
white keyboard against an orange background
Who needs the holidays when you can get this adorable Razer gaming keyboard for under $70 right now
Gamakay TK75 V2 on desk with pink wall and plant in background
Gamakay TK75 V2 review: a mechanical keyboard that’s a dream to use and comes in at a good price
Latest in How Tos
Trinity Rodman #2 of the Washington Spirit crosses the ball during a game between Bay FC and Washington Spirit at Audi Field on November 10, 2024 in Washington, DC.
National Women's Soccer League 2025: How to watch NWSL games live from anywhere
tiktok
How to edit TikTok videos
Irish boxer TJ Doheny receives an undercard bout, ahead of the WBO super welterweight world title fight in March, 2023
Ball vs Doheny live stream: how to watch the boxing action from anywhere
 Facebook social media app logo on log-in, sign-up registration page
How to delete all your Facebook posts
Bruno Guimaraes of Newcastle United during the Carabao Cup Semi Final Second Leg match in February 2025
Liverpool vs Newcastle live stream: how to watch Carabao Cup final 2025 online
Max Verstappen of Red Bull in testing for the 2025 season in Bahrain
Australian Grand Prix 2025: How to watch F1 First Practice race online from anywhere