How to Clean a Mechanical Keyboard Safely

Keycap puller lifting a keycap from a mechanical keyboard on a desk

How to Clean a Mechanical Keyboard Safely

Keycap puller lifting a keycap from a mechanical keyboard on a desk

Learning how to clean a mechanical keyboard is mostly a matter of working in the right order and keeping liquid away from the switches: unplug the keyboard, remove the keycaps, clear dust and crumbs from the plate, wash the caps separately, let everything dry fully, and put the caps back in the right places. The job takes under an hour; a deep clean once or twice a year keeps the keys feeling new.

A keyboard collects more grime than almost anything else on a desk: skin oils, dust and crumbs settle between the keys, and the gaps around every switch let debris go further than on a laptop keyboard. The good news: a mechanical board is built to be taken apart at keycap level, and a routine clean needs no specialist tools.

Key takeaways

  • Unplug the keyboard first and photograph the layout before removing any keycaps.
  • Remove keycaps with a puller, never by prising them off with a knife or screwdriver.
  • Keep liquid away from the switches: wash keycaps in a bowl, and use a barely damp cloth on the plate.
  • Let keycaps dry completely, ideally overnight, before putting them back.
  • A five-minute surface clean every few weeks means a deep clean is rarely a big job.

What you will need

A keycap puller is the one item worth buying if you do not have one; many keyboards ship with one in the box. A wire puller grips two opposite sides of a cap and lifts it straight up, far safer than a plastic ring puller or a makeshift tool, so check the box before ordering one.

For the rest, gather a soft brush such as a clean paintbrush, a microfibre cloth, a bowl of warm water with a drop of washing-up liquid, cotton buds, and a can of compressed air. A little isopropyl alcohol on a cloth or cotton bud shifts sticky residue on the plate, but keep it away from printed keycap legends, which it can fade. Skip the vacuum: it can generate static and is too strong for loose switches.

Before you start: preparation

Unplug the keyboard, or switch it off and remove the batteries if it is wireless. This is the most important safety step: a powered keyboard can register phantom key presses, and liquid near a live board is a risk you do not need. Unplug first, and never submerge the switches or the board in water.

Next, take a clear photograph of the keyboard from directly above — a full set of keycaps looks confusing once it is in a bowl. Pay particular attention to the bottom row, where the spacebar and modifier keys sit in sizes that are easy to mix up. Clear a workspace, put down a towel, and clean during a natural break, since the board will be out of action while the caps dry. Our guide to using AI in Google Docs and Sheets can help you pick up drafting on another device meanwhile.

Step 1: Remove the keycaps

Start at one corner and work across the board row by row. Hook the wire puller under two opposite edges of a keycap, squeeze gently, and pull straight up with a smooth, even motion; the cap should come away with a small pop. If it resists, wiggle it slightly, but never twist or lever it, which can snap the stem or damage the switch.

Larger keys need more care. The spacebar, Enter, Shift and Backspace keys are held by stabilisers, wire bars that keep the key level. They come off the same way, but need a straight, even pull, and a little more fiddling to seat the stabiliser wire when they go back on. If one feels stuck, check the puller is centred; forcing it bends stabilisers. Lay the caps out in rows on the towel, roughly matching the layout.

Step 2: Clean the plate and switches

With the caps off, turn the keyboard upside down and give it a few gentle shakes over a bin. Then hold it at a slight angle and use compressed air in short bursts to blow debris out from between the switches, working from one side to the other. Keep the can upright; holding the trigger down can spray cold propellant onto the board.

Next, brush the plate: a soft brush swept between the switches lifts the dust that shaking and air did not shift. Brush debris towards one edge. For sticky spots, dampen a cotton bud or a cloth corner with a little isopropyl alcohol and wipe gently. The cloth should be barely damp, never wet, with no liquid pooling around a switch.

Never pour or spray cleaner directly onto the keyboard, or run it under a tap, even if it is advertised as spill-resistant: that rating is meant to survive an accident, not a wash. If a switch still feels gritty, press it repeatedly with a fingertip; this often clears a small piece of debris. If a key still sticks, the switch may need replacing, a job for a switch puller and a separate guide.

Soft brush cleaning dust from between the switches of a keycap-free mechanical keyboard
A soft brush clears the dust that shaking and compressed air leave behind.

Step 3: Wash the keycaps

Keycaps are the one part of a mechanical keyboard that can safely go in water. Fill a bowl with warm water and a drop of washing-up liquid, and drop the caps in to soak for 15 to 30 minutes, which loosens skin oils and grime without scrubbing. Rub badly stained caps gently while they soak.

Avoid harsh cleaners, bleach or abrasive sponges, which damage the finish and fade the legends. Plain warm water and a drop of washing-up liquid is enough for almost every keyboard. Once soaked, rinse the caps under clean running water and shake off as much water as you can.

Mechanical keyboard keycaps soaking in a bowl of warm soapy water
Keycaps soak in warm water with a drop of washing-up liquid while the plate is cleaned separately.

Step 4: Dry everything and reassemble

Drying is the step people rush, and it is the one that causes problems. Spread the keycaps on a towel, open side up so water can escape from inside each cap, and leave them for several hours, or overnight if you can. They feel dry long before they are dry inside, and a damp cap can trap moisture on a switch.

While the caps dry, leave the plate to air and give it a final brush and wipe, checking no fibres or lint are caught around the switches. Then, using your photograph, press each cap back onto its switch with gentle pressure until it seats with a small click. Fit small keys first and stabilised keys last, seating the wire evenly.

Once every cap is back, plug in and test the keyboard. Open a text editor and press every key, including the function row and modifiers, checking that each registers and none stick. If a key does not register, remove its cap and check nothing is caught underneath; the fix is usually a reseat rather than a repair.

Cleaning methods compared

Not every clean needs the full treatment, and choosing the right method saves time.

Method Best for Time needed What to watch out for
Dry brush and compressed air Weekly dust and crumbs 5 minutes Keep the can upright; use short bursts
Damp cloth over the keycaps Fingerprints and light grime 10 minutes Wring the cloth out well
Keycap soak and plate clean A proper deep clean 45 minutes plus drying Caps must dry fully first
Switch removal and full strip-down Sticky switches and spills Over an hour Hot-swappable boards only; note switch positions

Caption: Start with the lightest method that will do the job; most keyboards only need a strip-down after a spill or a sticky switch.

How often should you clean a keyboard?

For a daily-use keyboard, a five-minute brush and blow-out every two to four weeks keeps dust under control, and a keycap soak every three to six months keeps the board feeling fresh. If you eat at your desk, clean more often: crumbs and grease work their way into switches.

The signs a deep clean is due are easy to spot: keys that feel gritty or sluggish, a film on the most-used caps, or a key that occasionally misses a press. Do not wait for a key to stop working: a clean at the first sign of trouble is a short job, while a clean after a failure can mean replacing a switch. Our guide to summarising long PDFs and research papers with AI pairs well with a tidy desk for reading and note-taking.

Keyboard cleaning checklist

Use this checklist each time you clean.

  • Unplug the keyboard or switch it off and remove the batteries.
  • Photograph the layout from above before removing any keycaps.
  • Remove keycaps row by row with a wire puller, pulling straight up.
  • Shake, brush and blow out dust from the plate and between switches.
  • Wipe sticky spots with a barely damp cloth or cotton bud.
  • Soak keycaps in warm soapy water for 15 to 30 minutes.
  • Rinse keycaps and lay them out to dry fully, ideally overnight.
  • Reassemble using the photograph, fitting stabilised keys last.
  • Plug in and test every key before getting back to work.

Frequently asked questions

Can I clean a keyboard without removing the keycaps?

Yes, for a light clean. Turn it upside down and shake it, use compressed air in short bursts, and brush between the keys. This removes surface dust, but not grime on the caps or dirt on the plate; for that, the caps need to come off.

Is it safe to wash keycaps in water?

Yes. Keycaps are solid plastic and can be soaked in warm water with a little washing-up liquid. The part that must stay dry is the keyboard itself, particularly the switches and the circuit board. Never put the keyboard body in water.

Can I use a vacuum cleaner on my keyboard?

Best not to. A household vacuum can pull a loose keycap or a hot-swappable switch from its socket, and it can build up static. Compressed air and a soft brush give you more control, with none of that risk.

How do I clean a sticky switch?

First press the key repeatedly after a normal clean, which often clears a small piece of debris. If it still sticks, the switch may need removing on a hot-swappable board, or replacing. Never pour cleaner into a switch; liquid inside can make the problem worse.

How long do keycaps take to dry?

Several hours at least; overnight is safest. They feel dry outside long before the inside is dry, so give them time. A dry cloth and ventilation help if you are in a hurry, but never use a hairdryer on hot, which can warp the plastic.

The bottom line

Cleaning a mechanical keyboard comes down to three habits: unplug it first, keep liquid away from the switches, and let the keycaps dry properly before they go back on. A board cleaned every few weeks and soaked twice a year will feel better, sound better, and last longer than one left until a key sticks.

Do it this week: set aside an evening, photograph the layout, pull the caps, and give the board the deep clean it has been waiting for. And if you are setting up a desk around the keyboard, our guide to the best tablets for students is a useful next read.

on this page