TestMyKeyOnline Keyboard Tester
Maintenance

How to Clean a Mechanical Keyboard Safely (Step-by-Step)

A clean keyboard feels like a new keyboard. Here is the safe, thorough cleaning routine we use — from a quick weekly brush to a full deep-clean with keycap removal and switch lubrication.

8 min readUpdated April 18, 2025

A mechanical keyboard is a magnet for the worst of your desk: finger oils, dust, pet hair, crumbs, the occasional splash of coffee. After three months, the keys feel different. After a year, the legends shine with grease. Cleaning restores both the feel and the lifespan — and if you do it properly, you only need to deep-clean twice a year.

Three levels of clean

  • Weekly — a thirty-second brush and blow. Keeps dust from settling into switches.
  • Monthly — a five-minute wipe-down of the case and caps. Removes oils before they etch the plastic.
  • Quarterly or twice-yearly — a full deep clean. Remove all caps, wash them, brush the switches, wipe the PCB.

Tools and supplies

  • Keycap puller (wire puller is gentler than plastic).
  • Switch puller (only needed if you are removing switches).
  • Compressed air can or a rocket blower.
  • Soft-bristled brush — a clean makeup brush or a dedicated keyboard brush.
  • Microfiber cloths, at least two.
  • Isopropyl alcohol, 70–90%.
  • Mild dish soap (Dawn works well) for washing keycaps.
  • Warm water in a bowl.
  • Cotton swabs.
  • Optional: keycap o-rings if you want to dampen sound on reassembly.

Weekly: the quick brush

  1. Unplug the keyboard.
  2. Turn it upside down over a bin and shake gently to dislodge loose debris.
  3. Hold the keyboard at an angle and brush between the keycaps with a soft brush, working from the top row down. Dust will fall out the bottom.
  4. Blow compressed air between the caps in short bursts, holding the can upright so no liquid propellant escapes.
  5. Wipe the case with a dry microfiber cloth.

Monthly: the wipe-down

  1. Unplug the keyboard.
  2. Lightly dampen a microfiber cloth with water — almost dry, never wet.
  3. Wipe the top of each keycap. Oils build up fastest on the home row (F and J) and the spacebar.
  4. For stubborn shine, add a drop of isopropyl alcohol to the cloth. Alcohol dissolves finger oils without harming PBT or ABS plastic.
  5. Wipe the case, paying attention to the wrist-rest area and the space behind the function row.
  6. Dry with a second cloth and let the keyboard air out for five minutes before plugging it back in.

Quarterly: the deep clean

1. Photograph the keyboard first

Before you pull a single cap, take a clear top-down photo of the keyboard. When you have fifty keycaps in a bowl and you cannot remember which shift key goes where, the photo saves you. This is the voice of experience.

2. Remove the keycaps

Use a wire keycap puller. Slide the wires under opposite corners of the cap, squeeze the puller gently, and lift straight up. Rocking the puller can crack the stem. Work systematically — number row first, then top alpha row, then home row, bottom row, and finally the larger keys.

3. Wash the keycaps

Fill a bowl with warm water and a few drops of mild dish soap. Drop the caps in and let them soak for twenty minutes. Swish them around, then scrub each one lightly with a soft toothbrush — particularly the undersides, where oils pool. Rinse with clean warm water, shake off excess, and lay them face-down on a clean towel to dry overnight.

Do not use hot water — it can warp ABS keycaps. Do not put keycaps in the dishwasher — the heat and detergent will dull legends and warp thin caps. PBT caps are more tolerant but still best hand-washed.

4. Clean the bare keyboard

  1. Take the keyboard outside or over a bin and blow compressed air across the whole PCB and switch plate. A surprising amount of debris will fly out.
  2. Brush between each switch with a soft brush to dislodge dust on the switch tops.
  3. Dampen a cotton swab with isopropyl alcohol and wipe the switch tops and the plate around them. Do not let alcohol drip into the switches unless you intend to clean them (see our sticky-keys guide for switch cleaning).
  4. Wipe the case thoroughly with a microfiber cloth lightly dampened with alcohol. Pay attention to corners and the area under the keycaps.
  5. Inspect the PCB for any signs of corrosion — green or white residue around solder joints. If you find any, the board has had liquid damage and you should clean it carefully with alcohol and a soft brush.

5. Reassemble

Once the caps are bone dry (wait the full overnight — damp caps rust switch springs), push each cap back onto its switch. Press straight down with firm, even pressure. You will feel it seat with a click. Refer to your photograph for the layout.

For stabilised keys, hook the stabiliser wire into the cap first, then press down evenly on both ends. If the key feels scratchy or sticks, the stabiliser wire is unseated — pop the cap off and try again.

Optional: lubricate the switches

If you are doing a deep clean and your keyboard is hot-swap, this is also the time to lubricate the switches. Pull each switch, open it with a switch opener, and apply a thin film of Krytox 205g0 to the stem rails and a tiny dab to the contact leaf. Relubing transforms a scratchy switch into a smooth one — but it is time-consuming (about three minutes per switch) and not necessary for a clean keyboard.

After the clean: test everything

Plug the keyboard back in and run the full tester. Press every key, hold several combinations to check rollover, and confirm none of the keys chatter after reassembly. A cap that is not seated properly can cause intermittent failures, and a stabiliser wire that popped out will make a key feel awful even if it registers fine.

Done properly, a deep clean takes about ninety minutes of work plus overnight drying for the caps. The keyboard will feel noticeably crisper — smoother caps, cleaner switches, no grit under your fingertips. Do it twice a year and the board will outlast most of your other tech.

Test it now in your browser

Open the keyboard tester and put this guide to work. Press every key, hold combinations to check rollover, and confirm your fix registered — all locally, nothing uploaded.

Open the keyboard tester

Related guides

Keep going — these cover the next most common questions.