What you need
- A wire keycap puller (usually included with the keyboard)
- A soft brush or a clean, dry paintbrush
- Compressed air or a small electric air duster
- Microfiber cloths
- Isopropyl alcohol, ideally 90% or higher, and cotton swabs
- A bowl, warm water and a little dish soap for keycaps
Before any cleaning, unplug the keyboard or switch it off if it is wireless. Take a photo of the layout so you can put the keycaps back in the right places.
The quick clean (every week or two)
- Turn the keyboard upside down over a bin and tap it gently to shake out loose debris.
- Brush between the keys, or use short bursts of compressed air at an angle to blow debris out rather than further in.
- Wipe the keycap tops with a microfiber cloth, slightly dampened with water or a little isopropyl alcohol for greasy keys.
- Wipe the case.
That takes five minutes and prevents most of the problems that need a deep clean later.
The deep clean (every few months)
- Remove the keycaps. Use the wire puller, grip the cap from two opposite sides and pull straight up. Remove the larger keys (spacebar, Enter, Shift, Backspace) carefully, because they are attached to stabilizers; pull evenly from both ends.
- Clear the plate. With the caps off, use the brush and compressed air to remove dust and crumbs from around the switches. Hold the stabilizer wires in place while blowing near them.
- Wipe the plate and case. Use a cloth or swab with isopropyl alcohol. Do not drip liquid into the switches.
- Wash the keycaps (see below) while you work, and let them dry completely.
- Reassemble and test. Press each cap firmly back on, check the long keys move freely, and run every key through the keyboard tester.
Washing keycaps
Put the keycaps in a bowl of warm (not hot) water with a few drops of dish soap and let them soak for a few hours. Stir them occasionally. Rinse, then spread them out on a towel and let them dry fully, ideally overnight. Any water left inside the stem will end up on your switches.
- Hot water can warp keycaps, especially ABS. Keep it warm, not hot.
- Do not use a dishwasher. The heat and detergent are too aggressive.
- Be gentle with printed legends. Doubleshot and dye-sub legends will not wash off. Pad-printed and some UV-printed legends can fade with scrubbing. See doubleshot vs dye-sub to tell which you have.
- Keycap shine is not dirt. Shiny keycaps are worn smooth, a common trait of ABS. Washing will not remove it; see ABS vs PBT.
Spills
Speed matters more than technique.
- Unplug the keyboard or switch it off immediately.
- Turn it upside down to let liquid drain out.
- Remove the keycaps and soak up what you can with a cloth.
- For plain water, let the board dry completely, at least a day or two, before reconnecting.
- For sugary or milky drinks, residue will make switches sticky. On a hot-swap board, remove affected switches and clean or replace them. On a soldered board, the switches may need to be cleaned in place or desoldered.
If keys behave strangely after drying, test them in the keyboard tester and the chatter test. Our fix a key guides cover sticky and double-typing keys.
Cleaning individual switches
If one key feels gritty, sticky or double types, the switch itself may be dirty. On a hot-swap board, pull the switch out, open it with a switch opener, clean the parts with a dry brush, and reassemble. Many people take the chance to lube it while it is open; see how to lube switches. Electronics contact cleaner can help with chatter caused by dirty contacts. Our guide to swapping switches on a hot-swap board covers removing and reinstalling them safely.
What never to do
- Do not spray liquid directly onto the keyboard.
- Do not use household cleaners with bleach or strong solvents on keycaps or cases.
- Do not use a vacuum with a strong nozzle directly on the switches; it can pull off small parts and build up static.
- Do not reconnect a keyboard that is still wet.
- Do not pry at stabilized keys from one end; you can pop the wire out of its clip.
Frequently asked questions
How often should I clean my mechanical keyboard?
A quick clean, shaking out debris and wiping the keys, every week or two is plenty for most people. A deeper clean with the keycaps removed every few months, or whenever keys start to feel gritty or sticky, keeps the switches in good shape.
Can I wash keycaps in water?
Yes, plastic keycaps can be soaked in warm water with a little dish soap, then rinsed and dried completely. Avoid hot water, which can warp ABS caps, and do not put them in a dishwasher. Pad-printed legends can fade with scrubbing, so be gentle with those.
What should I do if I spill a drink on my mechanical keyboard?
Unplug it or switch it off immediately and turn it upside down to drain. Remove the keycaps and dry what you can. For water, let it dry completely for a day or two before reconnecting. For sugary drinks, the residue will make switches sticky, and the affected switches may need to be cleaned or replaced.
Can I use isopropyl alcohol on a keyboard?
Yes, isopropyl alcohol on a cloth or cotton swab is good for wiping the case, plate and keycap surfaces, and it evaporates quickly. Do not pour it into switches, and avoid it on surfaces with printed legends or special coatings, which it can damage.
Keep learning
- Stabilizers guide: reseating and lubing the long keys.
- Key chatter explained.
- Fix a key that is not working.