How to Clean a Keyboard (Without Breaking It)
QWERTYChamp Team · · 7 min read
Keyboards get grubby. Skin oils build up on the keys, crumbs and dust fall between them, and sooner or later something gets spilled. A dirty keyboard isn’t just unpleasant; debris is one of the most common reasons keys stick, stop working or start typing twice.
The good news is that cleaning one is easy, as long as you avoid the few things that actually cause damage.
Before you start
- Unplug it or switch it off and remove the batteries. For a laptop, shut it down and unplug the charger.
- Take a photo of the keyboard if you plan to remove keycaps, so you know where everything goes back.
- Never spray or pour liquid directly onto the keyboard. Liquid running under the keys is how cleaning turns into repair.
What you’ll need:
- Compressed air (or a small hand blower)
- Isopropyl alcohol (70% or higher evaporates quickly) and a lint-free or microfibre cloth
- Cotton swabs
- Optional: a keycap puller, a bowl of warm soapy water, a soft brush
The quick clean (5 minutes)
Do this every week or two:
- Turn the keyboard upside down over a bin and tap or shake it gently.
- Blow compressed air between the keys at an angle, working row by row. Hold the can upright and use short bursts so it doesn’t spray propellant.
- Wipe the keys with a cloth lightly dampened with isopropyl alcohol. Wring it out first; it should be damp, not wet.
- Clean around the edges of keys with a cotton swab dampened the same way.
- Let it dry for a few minutes before plugging it back in.
Isopropyl alcohol also disinfects, which is worth doing for shared keyboards in schools and offices.
The deep clean (desktop keyboards)
Every few months, or when keys start to feel gritty:
- Remove the keycaps with a keycap puller, pulling straight up. Leave the larger keys (space bar, Enter, Shift, Backspace) unless you’re confident: they have metal stabilizer bars that can be fiddly to reattach.
- Soak the keycaps in warm (not hot) water with a little dish soap for 20 to 30 minutes. Give them a gentle scrub with a soft brush.
- Clean the board while they soak: compressed air, then a soft brush, then alcohol on a cotton swab around the switches. Don’t drip anything into the switches.
- Rinse and dry the keycaps completely. Spread them on a towel and leave them for several hours or overnight. Trapped water inside a keycap can end up on the switch.
- Press the keycaps back on firmly and evenly, using your photo as a guide.
Mechanical and membrane keyboards are both fine with this process. The difference is that mechanical keycaps come off easily and go back easily, while many membrane and low-profile keyboards have clips that can snap.
Laptop keyboards
Laptop keys are attached with small plastic scissor clips that break easily, so don’t pull laptop keycaps off unless you know your model and have a spare.
Instead:
- Tilt the laptop on its side (about 75 degrees) and blow compressed air across the keyboard in sweeps, then turn it and repeat from other angles.
- Wipe the keys with an alcohol-dampened cloth.
- Use a dry soft brush or a sticky note’s adhesive edge to lift debris from between keys.
If a laptop key is truly stuck or dead after this, a repair shop can replace the key or the keyboard.
After a spill
Act fast:
- Unplug the keyboard or shut down the laptop immediately. Don’t wait to save your work.
- Turn it upside down to let liquid drain out. For a laptop, open it into a tent shape, keys facing down.
- Blot what you can with a cloth. Don’t use a hair dryer on high heat.
- Leave it to dry for at least 24 to 48 hours before powering it on.
Water usually dries without lasting harm. Sugary or milky drinks leave sticky residue that makes keys stick or fail. For those, after drying, remove the affected keycaps (on desktop keyboards) and clean around the switches with isopropyl alcohol and cotton swabs. On laptops, a spill of anything other than water is worth a professional clean, because liquid can reach the motherboard.
Things to avoid
- Spraying cleaner directly on the keys
- Bleach, strong solvents or abrasive cleaners, which can remove the printing on keys
- Hot water or the dishwasher for keycaps
- Vacuum cleaners with strong suction on loose keycaps (they can pull them off and swallow them)
- Plugging the keyboard back in while anything is still wet
Check it worked
After cleaning, run the keyboard tester and press every key. It shows any key that isn’t registering, a key that sticks down, and keys that register twice. If problems remain, our guide to keyboard keys not working walks through the next steps.
A clean keyboard feels better to type on, too. Celebrate with a quick typing test and see if your speed improves.
Frequently asked questions
What is the best way to clean a keyboard?
Unplug it, turn it upside down and tap out loose debris, blow compressed air between the keys, then wipe the keys with a cloth lightly dampened with isopropyl alcohol. Never pour or spray liquid directly onto the keyboard.
Can I clean my keyboard with water?
Not the keyboard itself. A barely damp cloth is fine for wiping the surface, but water must not get under the keys. Removed keycaps from a desktop keyboard can be washed in warm soapy water, then dried completely before you put them back.
Can I put keycaps in the dishwasher?
It's not recommended. High heat can warp keycaps and fade printed legends. Soak them in warm (not hot) soapy water instead.
How often should I clean my keyboard?
A quick clean (tap out, air, wipe) once a week or two keeps most keyboards in good shape. A deep clean with keycaps off every few months is plenty for most people, more often if you eat at your desk.
How do I fix sticky keys after a spill?
Unplug immediately, turn the keyboard upside down to drain, and let it dry for at least a day. For sugary drinks, the residue needs cleaning: remove the affected keycaps and clean around the switches with isopropyl alcohol on a cotton swab. If keys stay sticky, the switches may need replacing.