To clean a keyboard, turn it off or unplug it, turn it upside down and tap out loose debris, blow compressed air between the keys, then wipe the keys with a microfiber cloth lightly dampened with 70% or higher isopropyl alcohol. Desktop keyboards can go further: most let you remove the keycaps for a deep clean. Laptop keyboards should only be cleaned from the surface, because the keyboard sits directly on top of the laptop's internal components.
What you need to clean a keyboard
Item
Used for
Needed for
Microfiber cloths
Wiping keys and surfaces
All keyboards
Isopropyl alcohol (70% or higher)
Removing grime and disinfecting
All keyboards
Compressed air
Blowing debris from under keys
All keyboards
Cotton swabs
Cleaning key edges and gaps
All keyboards
Soft brush (clean paintbrush or soft toothbrush)
Loosening crumbs and dust
All keyboards
Keycap puller
Removing keycaps safely
Mechanical, optical, most desktop membrane
Bowl, warm water, mild dish soap
Soaking removed keycaps
Mechanical, optical, some membrane
Towel
Drying keycaps
Any keyboard with removed keycaps
Phone camera
Photographing the key layout
Any keyboard with removed keycaps
Avoid bleach, household multi-surface sprays, and anything abrasive. They can strip the lettering on keys and damage plastic coatings.
Types of keyboards Knowing your keyboard type tells you how far you can safely take it apart.
Membrane keyboards use a rubber dome sheet under the keys. Pressing a key pushes the dome onto a circuit layer. They are common on budget desktop keyboards and feel soft and quiet.Mechanical keyboards use an individual switch with a spring under each key. They are durable, often louder, and built so the keycaps pull off easily.Scissor-switch keyboards use a thin, X-shaped plastic hinge under each key to keep it stable. They are low profile and used on nearly all laptops and many slim desktop keyboards.Optical keyboards are a type of mechanical keyboard that registers key presses with a beam of light instead of metal contacts. They look and clean like mechanical keyboards, and many are more resistant to dust because there are no contacts to foul.Ergonomic keyboards are designed around hand and wrist comfort, with split, curved, or tented layouts and often a wrist rest. "Ergonomic" describes the shape, not the switch, so an ergonomic keyboard can be membrane, mechanical, or scissor underneath.How to tell which you have: Press a key slowly. A soft, mushy press is membrane. A springy press with a distinct click or bump is mechanical or optical. A short, flat, crisp press is scissor. You can also check the product page or manual for the switch type.
Laptop keyboards vs desktop keyboards
Laptop keyboard
Desktop keyboard
Connection
Built into the laptop
Separate, connected by cable or wireless
What sits underneath
Motherboard, battery, and other components
Only the keyboard's own circuit board
Switch type
Almost always scissor
Membrane, mechanical, optical, or scissor
Removing keycaps
Not recommended; clips break easily
Usually safe with a keycap puller
Shaking out debris
Gently, with the laptop fully powered off
Freely, upside down
Spill damage
Can damage the whole laptop
Usually limited to the keyboard
Replacement cost
Often requires a repair service
Replace the keyboard on its own
The key difference: a desktop keyboard is a standalone device you can take apart, rinse parts of, and replace cheaply. A laptop keyboard is part of the computer, so you clean it with less liquid, less force, and no disassembly.
This is also why many people who work at a desk connect an external keyboard to their laptop. It moves the crumbs, wear, and spill risk off the laptop and onto a device that is easy to deep clean. The Nitro Gaming Keyboard 570 Wireless - NKR570 connects over Bluetooth, 2.4GHz wireless, or cable, so it pairs with a laptop without taking up a port, and its 96 mechanical red switch keys can be cleaned using the full mechanical keyboard method below.
Difficulty at a glance Keyboard type
Difficulty
Can you remove keycaps?
Deep clean time
Scissor (laptop)
Easy (surface only)
Not recommended
10 to 15 minutes
Scissor (desktop)
Easy
Not recommended
10 to 15 minutes
Membrane
Easy to moderate
Most keys, yes
20 to 40 minutes
Ergonomic
Moderate
Depends on switch type
30 to 60 minutes
Mechanical
Moderate
Yes
45 minutes plus drying time
Optical
Moderate
Yes
45 minutes plus drying time
Drying time for soaked keycaps is up to 24 hours.
1. How to clean a laptop keyboard (scissor switches)
Difficulty: EasyYou need: Microfiber cloth, isopropyl alcohol, compressed air, cotton swabs, soft brush
Shut down the laptop. Do not just put it to sleep. Unplug the charger.Tip out loose debris. Hold the laptop open at about a 75 degree angle, keyboard facing down, and tap the bottom gently.Use compressed air. Hold the can upright and spray in short bursts, moving left to right across each row. Tilt the laptop and repeat from another angle.Brush the gaps. Run a soft brush between the keys to loosen anything the air missed.Wipe the keys. Dampen a microfiber cloth with isopropyl alcohol. It should be damp, not wet. Wipe each key and the palm rest.Clean the edges. Run a cotton swab lightly dampened with alcohol around the edges of each key.Let it dry. Wait a few minutes before turning the laptop on. Alcohol evaporates quickly.Never spray liquid directly onto a laptop keyboard. Always apply it to the cloth first.
Should you remove laptop keycaps? Only if a key is stuck and air cannot free it. Laptop scissor clips are small and fragile, and a broken clip usually means a repair. If you must, check your laptop's support documentation for the correct removal method first.
2. How to clean a membrane keyboard Difficulty: Easy to moderateYou need: Microfiber cloth, isopropyl alcohol, compressed air, cotton swabs, soft brush, keycap puller (optional), bowl with warm soapy water (optional)
Quick clean
Unplug the keyboard, or switch it off if it is wireless.Turn it upside down and shake it over a trash can or sink.Use compressed air between the keys in short bursts.Wipe the keys with a cloth dampened with isopropyl alcohol.Clean between keys with a cotton swab.Deep clean
Photograph the layout so you can put every key back in place.Remove the standard keycaps with a keycap puller. Leave the large keys (Spacebar, Enter, Shift, Backspace) in place if they have metal stabilizer bars, since these are harder to reattach.Clean the exposed surface with a brush, compressed air, and a damp cloth. Do not pour liquid onto the rubber dome sheet.Soak the keycaps in warm water with a few drops of dish soap for 15 to 30 minutes, then rinse.Dry the keycaps completely on a towel, ideally overnight. Any moisture left inside can cause problems.Press the keycaps back on using your photo as a guide.3. How to clean a mechanical keyboard
Difficulty: ModerateYou need: Keycap puller, microfiber cloth, isopropyl alcohol, compressed air, cotton swabs, soft brush, bowl with warm soapy water, towel
Quick clean
Unplug the keyboard, or switch it off if it is wireless.Shake it upside down to remove loose debris.Use compressed air between the keycaps.Wipe the keycaps with a cloth dampened with isopropyl alcohol.Deep clean
Photograph the layout. Remove all keycaps with a keycap puller. Pull straight up, not at an angle, to avoid bending the switch stems.Remove large keys carefully. Spacebar, Enter, Shift, and Backspace use stabilizers. Lift them evenly from both ends and note how the stabilizer wire is attached.Clean the plate. Brush and blow out debris, then wipe the plate and around the switches with a lightly dampened cloth or cotton swab.Soak the keycaps in warm soapy water for 30 minutes to a few hours. Scrub textured caps gently with a soft toothbrush, then rinse.Dry the keycaps completely. Lay them flat on a towel for up to 24 hours.Reinstall the keycaps. Press each one straight down until it seats. Test every key before you finish.Fixing a sticky or chattering switch: Remove the keycap, blow compressed air directly into the switch, then press the switch 20 to 30 times to work out debris. If it still sticks, check the keyboard maker's support site, since some switches can be replaced individually.
Compact keyboards are faster to deep clean. Every keycap you remove is one more to soak, dry, and put back. The Predator Aethon 330 Keyboard - PKR200 uses a space-saving 61-key layout, about 40 fewer keycaps than a full-size keyboard, which cuts deep clean time noticeably. It uses tactile blue Kailh switches with 100% anti-ghosting and connects wired or over Bluetooth.
4. How to clean an optical keyboard Difficulty: ModerateYou need: The same items as a mechanical keyboard
Clean an optical keyboard the same way as a mechanical one: remove keycaps, clean the plate, soak and dry the caps, and reinstall. Two differences:
Keep the light sensors clear. Optical switches rely on a light beam, so dust or residue inside a switch can cause missed or repeated presses. Compressed air works well here.Do not assume it is waterproof. Some optical keyboards are rated for spill resistance, but that does not mean you should rinse the board. Check the product specifications and treat the base as electronics.If you want to try optical switches without giving up a clicky feel, the Predator Aethon 700 Gaming Keyboard - PKW120 lets you switch between a tactile, clicky keypress and a smooth, linear optical one. It has a full 104-key layout with per-key RGB lighting, is rated for 60 million keystrokes, and includes a magnetic wrist rest that pulls away for cleaning, as covered in the next section.
5. How to clean an ergonomic keyboard Difficulty: ModerateYou need: Items for its switch type, plus a mild soap solution for the wrist rest
Identify the switch type and follow the matching instructions above for the keys.Clean each half separately if it is a split keyboard. Unplug the connecting cable first.Clean along the curves. Curved and tented layouts have deep gaps where debris collects. Use a soft brush and cotton swabs to reach them.Detach the wrist rest if you can. Magnetic and clip-on wrist rests come off, which lets you clean the rest on its own and reach the crumbs that collect along the front edge of the keyboard.Clean the wrist rest. Leatherette or plastic: Wipe with a cloth dampened with mild soapy water, then dry.Fabric or foam: Spot clean with a damp cloth and a small amount of soap. Do not soak it.Gel: Wipe the surface only. Never puncture or soak it.Check under tenting feet and hinges. Brush out dust that collects in adjustment mechanisms.What to do if you spill liquid on your keyboard Power off immediately. Unplug or switch off a desktop keyboard. Shut down a laptop and unplug the charger.Turn it upside down to let the liquid drain away from the internals.Blot, do not wipe. Soak up what you can with a dry cloth.Let it dry for 24 to 48 hours before powering it back on.For sugary drinks, remove the keycaps on a desktop keyboard and clean the affected area with isopropyl alcohol. On a laptop, contact the manufacturer or a repair service, since sticky residue under the keyboard can damage components.Do not use a hair dryer. Heat can warp keycaps and push liquid further inside.
Common mistakes to avoid Spraying cleaner directly onto keys. Liquid runs into the switches and circuit layer.Using a vacuum without a brush attachment. Strong suction can pull off keycaps or small parts.Holding compressed air upside down. It releases liquid propellant that can freeze and damage components.Reattaching damp keycaps. Trapped moisture can cause corrosion and short circuits.Prying laptop keys off with a screwdriver. The clips break easily and are hard to replace.How often should you clean your keyboard? Wipe the keys weekly, or daily if you share the keyboard or eat at your desk.Use compressed air monthly to clear debris before it builds up.Deep clean a desktop keyboard every three to six months, including removing and soaking keycaps.Frequently asked questions Can I use isopropyl alcohol to clean my keyboard? Yes. Isopropyl alcohol at 70% or higher is safe for most keyboards. Apply it to a microfiber cloth or cotton swab, never directly onto the keys, and let it evaporate before using the keyboard.
Can I use disinfecting wipes on my keyboard? Yes, if they are bleach-free. Squeeze out excess liquid first so it does not drip between the keys, then let the keyboard air dry.
How do I clean under laptop keys without removing them? Shut down the laptop, hold it at an angle, and use short bursts of compressed air between the keys. Follow with a soft brush and a cotton swab lightly dampened with isopropyl alcohol.
Can I put keycaps in the dishwasher? It is not recommended. High heat can warp plastic keycaps and fade the lettering. Soak them in warm soapy water by hand instead.
How do I fix sticky keys? Remove the keycap if your keyboard allows it, clean the switch area with compressed air and a cotton swab dampened with isopropyl alcohol, then press the key repeatedly. On a laptop, clean around the key without removing it.
Is it safe to wash a keyboard in water? Only removed keycaps should be washed in water. The keyboard itself contains electronics and should only be wiped with a lightly dampened cloth.
What is the easiest keyboard type to clean? Scissor-switch keyboards are the quickest to clean because they are low profile and debris sits near the surface. Mechanical and optical keyboards take longer but allow the most thorough cleaning because every keycap comes off.
How do I clean a keyboard with a wrist rest? Detach the wrist rest if it is magnetic or clip-on. Wipe leatherette or plastic rests with a cloth dampened with mild soapy water, spot clean fabric or foam rests without soaking them, and only wipe the surface of gel rests.
Recommended Products
Nitro Mechanical Gaming KeyboardBuy Now
Predator Aethon 303 Gaming KeyboardBuy Now
Predator Aethon 700 Gaming KeyboardBuy Now