Quick Answer: Clean a mechanical keyboard by first blasting loose dust and crumbs out with short bursts of compressed air, then wiping the case and keycaps with a microfiber cloth dampened in 70% isopropyl alcohol — save 90%+ IPA for internal parts like switch contacts. Pull keycaps off with a keycap puller for a deeper wash in lukewarm soapy water (skip the dishwasher on anything you’d mind losing), and only pull individual switches if a key feels gritty rather than just dusty. A quick surface pass takes under two minutes; a full teardown clean runs 20-40 minutes depending on board size.

Keyboards are consistently ranked among the dirtiest everyday objects you touch, and a mechanical board’s gaps between keycaps make it worse than a flat laptop keyboard at trapping crumbs, skin cells and dust. The good news is that cleaning one properly is quick, cheap and low-risk as long as you know which tool to use where. Here’s the process, step by step.

Cleaning methods compared

MethodBest forTimeRisk if done wrong
Compressed airLoose dust & crumbs, weekly upkeep~30 secondsLow — tilt the can upright per its instructions
70% isopropyl alcohol + clothCase & keycap surface grime~2 minutesLow — never spray directly, dampen the cloth
Keycap removal + soapy waterDeep clean, sticky/greasy caps~20-30 minutesMedium — hot water or a dishwasher's dry cycle can warp ABS caps
90%+ isopropyl alcoholPCB, switch contacts, connectors~10 minutesMedium — pooled liquid inside a switch can strip lube
Switch pulling + cleaning gelGritty/inconsistent individual keys~5-10 min per switchLow on hot-swap boards, needs desoldering on soldered ones

Keyboard cleaning, by the numbers

iFixit Electronics Cleaning Kit

Microfiber cloths · dust blower · anti-static brush · keycap puller · ~$19.99
  • Covers every step in this guide in one box — a dust blower for the compressed-air pass, brushes and cloths for wiping down, and a keycap puller for the deep clean.
  • Repair-grade tools built to survive years of reuse rather than a single cleaning session.
Check price on Amazon →

Cleaning supplies like these are the kind of thing you don’t want to wait a week for once you’ve noticed the crumbs — try Prime free for 30 days and a cleaning kit lands in two days instead of trickling in with the rest of a slow order.

How to clean a mechanical keyboard, step by step

  1. Unplug the board. Disconnect USB or power off Bluetooth before you start — this avoids stray keypresses and is basic safety around any liquid.
  2. Tilt and blast with compressed air. Turn the keyboard upside down at an angle and give it several short bursts of compressed air between the keys to knock loose dust, crumbs and hair free. Hold the can upright, not tilted, per the can’s own instructions.
  3. Wipe the case and keycap tops. Dampen a microfiber cloth with 70% isopropyl alcohol and wipe every surface you can reach without removing keycaps. This handles the oily film that builds up from fingertips.
  4. Pull the keycaps for a deep clean (optional). Use a keycap puller to lift caps straight up — the wire-loop style spreads pressure more evenly than the plastic ring bundled with most boards, which is a common cause of cracked caps. Wash caps in a bowl of lukewarm, not hot, water with a few drops of mild soap, then let them air-dry fully before reinstalling.
  5. Clean around exposed switches. With keycaps off, use a soft brush or cleaning gel to lift debris from around the switch stems. Save 90%+ isopropyl alcohol on a cotton swab for stubborn grime directly on switch contacts, applying sparingly rather than letting liquid pool inside the housing.
  6. Reassemble and test. Reseat every keycap and confirm each key registers cleanly before you consider the job done.

If a specific key still feels gritty after this process rather than just dusty, the debris has likely reached the stem itself — pulling that one switch with a puller for a closer look, and relubing it while you’re in there, usually fixes it; see our how to lube keyboard switches guide for that next step. Don’t have a keycap puller or brush kit yet? Our best keyboard cleaning kit roundup compares the full toolkits, and our best keycap puller guide breaks down which puller style suits hot-swap versus soldered boards.

Which method do you actually need?

The bottom line

A mechanical keyboard stays feeling new with a two-minute weekly habit — compressed air to knock loose crumbs, then a cloth dampened with 70% isopropyl alcohol for the case and caps. Save deeper cleaning (keycap removal, 90%+ IPA on internals) for every few months or whenever a key stops feeling right, and always keep liquid out of the switch housing itself. If a switch still feels gritty after cleaning, that’s a lube problem, not a dirt problem — our how to lube keyboard switches guide covers the fix. Shopping for a board that’s easier to keep clean in the first place? Our best hot swappable keyboard picks make switch-level cleaning tool-free.