How-toVerified JUN 2026

How to Clean a Mechanical Keyboard

Debris, sticky switches, and gunk under keycaps are fixable in under an hour. Here's the right sequence, what to avoid, and when to go deeper.

7 min read

How to Clean a Mechanical Keyboard

Keyboards accumulate more grime than almost any other desk surface — skin oils, crumbs, dust, and the occasional coffee splash. The good news: most of it is completely reversible with household supplies and the right sequence. The one thing to get right up front is keep liquid away from the PCB. That's the whole game.


Why keyboards get so dirty — and why it matters

Understanding the mechanism makes the fix obvious.

A mechanical keyboard is a layered sandwich: keycaps on top, a plate (usually steel or aluminum) beneath them, switches soldered or hotswapped into a PCB, and a case holding it all together. Every gap in that stack is a funnel for debris. Crumbs fall between keycaps and wedge under the plate. Skin oils transfer from fingers to keycap surfaces and oxidize into a gray film. Dust accumulates on switch contacts through the gaps in the slider housing.

The plate-switch-PCB layer is where cleaning goes wrong. Liquid that gets past the keycap level can wick into switch housings, sit on PCB traces, and cause corrosion or shorts — sometimes immediately, sometimes weeks later. Heat can warp ABS keycap legends or widen the tolerances on PBT stems.

That's why the cleaning sequence matters: surface first, keycaps off second, switches last if at all.


What you'll need

You don't need a cleaning kit. You need:

  • A keycap puller (wire-style; the plastic claw type mars stems — avoid it)
  • Compressed air or a small rubber air blower
  • Isopropyl alcohol, 70–90% (higher concentration evaporates faster, leaves less residue)
  • Cotton swabs and a few microfiber cloths
  • A small bowl of warm water and a drop of dish soap (for keycaps only)
  • A lint-free towel or paper towels to dry on
  • Optional: a soft-bristle brush (a clean toothbrush works)

What to skip: WD-40, household glass cleaner, anything with ammonia, and anything above about 50°C on ABS keycaps.


Step 1 — Photograph your layout before pulling anything

Take a photo of your full keyboard before removing a single keycap. This sounds obvious until you're staring at 60 unlabeled stems wondering where the bottom-row modifiers went. Ortholinear and 65% layouts especially will punish you for skipping this.


Step 2 — Surface clean first (keyboard fully assembled)

Before touching keycaps, do a quick pass on the assembled board:

  1. Unplug the keyboard (or turn off Bluetooth and remove the battery if wireless).
  2. Tilt the board at a 45-degree angle and use compressed air or a hand blower to dislodge loose debris from between keycaps. Work in short bursts; long blasts can push debris deeper into switch housings.
  3. Wipe the keycap surfaces with a microfiber cloth lightly dampened with isopropyl alcohol. This removes the oil film without any risk to the PCB.

For most keyboards that get weekly maintenance, this step alone is enough. Stop here if that's all you need.


Step 3 — Remove and soak keycaps

Pull all keycaps with a wire puller. Go straight up; angled pulls stress the switch stem.

Soaking method:

  • Place keycaps in a bowl of warm (not hot) water with a small drop of dish soap.
  • Let them soak 20–30 minutes. For heavy buildup, up to an hour is fine.
  • Agitate gently with your fingers or a soft brush.
  • Rinse thoroughly under running water.
  • Dry completely before reinstalling — spread them on a lint-free towel and let them air-dry for at least 4–6 hours. Overnight is safer. Moisture trapped under a keycap will sit on the switch housing and wick in over time.

Do not use hot water on ABS keycaps — it can warp legends. PBT is more tolerant but warm water is still the right call.

Do not put keycaps in a dishwasher. The heat and water pressure both cause problems.


Step 4 — Clean the board (no switches removed)

With keycaps off, you now have clear access to the plate and the top of each switch housing. This is where most of the real grime lives.

  1. Tilt the board and use compressed air to blow out debris around and between switches. Work systematically row by row.
  2. Use a cotton swab lightly dampened with isopropyl alcohol to clean the plate surface between switches. The alcohol evaporates quickly, but keep the swab damp, not wet — you don't want pooling.
  3. A soft-bristle brush is useful here for scrubbing the plate without getting liquid into the switches.
  4. Wipe the case exterior and interior edges with a slightly damp microfiber cloth, then dry immediately.

Do not spray or pour anything directly onto the PCB or into switch housings. Targeted application only.


Step 5 — Switch cleaning (only if needed)

Most switches don't need cleaning unless they're exhibiting specific symptoms: scratchy actuation, inconsistent feel, or debris-induced binding. Cleaning switches while they're soldered to a PCB is genuinely difficult to do safely; this step applies primarily to hotswap boards where you can pull switches out.

For hotswap boards:

  • Pull affected switches with a switch puller.
  • Rinse the housing in isopropyl alcohol, then allow to dry completely — switches must be bone dry before reinstallation.
  • If the switch feels scratchy post-clean, that's usually a lubrication issue, not a dirt issue (lubing switches is a separate topic covered in our guide on switch lubrication and modification).

For soldered boards with dirty switches: compressed air and a dry brush are your tools. Don't attempt liquid cleaning on a soldered switch unless you're prepared to deal with PCB exposure risk.


Cleaning depth quick-reference

Situation What to do Time
Weekly maintenance IPA wipe on keycap surfaces, compressed air 5 min
Monthly general clean Surface + keycap soak + plate wipe 45–60 min
Heavy buildup / sticky keys Full disassembly + keycap soak + plate detail clean 60–90 min
Spill response Immediate unplug → invert → do NOT use until dry 24–48 hr drying
Scratchy or binding switches (hotswap) Pull + rinse switch in IPA + dry + reinstall 15 min per switch
Scratchy switches (soldered) Compressed air + dry brush only 10 min

Spill recovery — a separate protocol

A spill is not a regular clean. The steps are different and the timing matters.

  1. Unplug immediately. Do not press any keys after a spill. Current through wet PCB traces is what causes damage.
  2. Invert the keyboard so liquid runs out rather than in. Keep it upside down.
  3. Do not use heat (hair dryer, oven). Let it air-dry inverted for a minimum of 24–48 hours, longer for larger spills or sugary drinks.
  4. If it was water: there's a reasonable chance of full recovery if you acted fast.
  5. If it was anything with sugar (soda, coffee with sweetener, juice): sugar leaves a residue on contacts that causes corrosion. After full drying, the switch housings affected will likely need to be opened and cleaned with IPA, or replaced.
  6. If keys still misfire after 48 hours of drying: corrosion has likely started on PCB traces. At that point you're looking at replacement, not cleaning.

FAQ

How often should I clean my mechanical keyboard? A quick surface wipe with a microfiber cloth once a week takes two minutes and prevents the buildup that leads to deep cleans. Do a full keycap-off clean every one to three months depending on how much you eat or drink near the board, or whenever key feel starts to degrade. Most people clean far too rarely and then wonder why the keycap soak water turns gray.

Can I use water to clean my keyboard? On keycaps only, and only if they're fully detached from the board. Water near the PCB or switch internals is the primary cause of permanent electrical damage. Isopropyl alcohol is better for the board itself because it evaporates quickly and doesn't conduct electricity in the same way water does.

Why do my keycaps still look yellowed after cleaning? Yellowing on ABS keycaps is UV oxidation, not dirt. Soaking won't reverse it. There's a community method called "retrobright" (hydrogen peroxide + UV light) that can lighten oxidized ABS, but results vary and it can over-whiten or mottle some keycaps. PBT keycaps resist yellowing significantly better and are worth considering if the yellowing bothers you on a board you plan to keep long-term.

Is isopropyl alcohol safe on printed keycap legends? Generally yes, for standard doubleshot or dye-sublimated keycaps. The legend is molded through the cap or dyed into the plastic, not printed on the surface. Where it gets risky is pad-printed legends (common on budget boards) — alcohol can fade them. If your legends are already showing wear, test on an inconspicuous key first.

Can I put my keycaps in the dishwasher? Technically some people do it in a mesh bag on the top rack at low heat. But the water pressure can stress legends and the heat will warp ABS. It's not worth the risk when a soak in warm water and dish soap works just as well and costs you nothing.

My spacebar sounds different since I cleaned it — what happened? The spacebar is the most commonly mis-seated keycap. It has a stabilizer wire underneath, and if the stem doesn't engage the stabilizer correctly on reinstall, it'll rattle or bottom out unevenly. Pull it off, check that the stabilizer wire is seated in both stem slots, and press it down with even pressure on both ends. A slightly off-center press causes most post-clean spacebar problems.


Bottom line

Keep the liquid away from the PCB and let keycaps dry completely before reinstalling — those two rules prevent 90% of cleaning-related damage. For regular maintenance, a compressed air pass and an IPA wipe down takes five minutes and keeps the board feeling like new. For a proper deep clean, budget an hour, pull the keycaps, soak them overnight, and do a methodical plate clean while they dry. If a spill happens, unplug immediately, invert, and wait it out — rushing it back to use before it's truly dry is how you turn a recoverable situation into a dead board.