The best keyboard cleaners are isopropyl alcohol and compressed air, used separately for different jobs

Isopropyl alcohol (70% concentration) removes oils, dust, and sticky residue from keycaps and the keyboard surface. Compressed air blows dust and crumbs out from between the keys without pushing moisture into the electronics. For most keyboards, you need both—alcohol for visible grime, compressed air for debris trapped underneath. Avoid water, bleach, and acetone, which can damage plastic and electronics.

The method depends on how dirty your keyboard is and whether you can remove the keycaps. A light weekly cleaning takes five minutes. A deep clean of a mechanical keyboard with removable keys takes 20 to 30 minutes but reaches places surface cleaning cannot.

Key Takeaways

  • Isopropyl alcohol at 70% concentration cleans keycaps and surfaces without leaving residue or damaging plastic.
  • Compressed air removes dust and crumbs from between keys and underneath without pushing moisture into circuits.
  • Never use water, bleach, acetone, or vinegar on keyboards—these can corrode electronics or dissolve plastic.
  • Mechanical keyboards with removable keycaps can be deep-cleaned by taking the caps off and soaking them in warm soapy water while you clean the board underneath.
  • Unplug your keyboard or disconnect it before cleaning, and let any wet parts dry completely before plugging it back in.

Isopropyl alcohol: the standard choice for keyboard cleaning

Buy 70% isopropyl alcohol at any drugstore or online. Do not use 90% or higher—it evaporates too fast to clean effectively and can damage some plastics. Dampen a microfiber cloth or coffee filter with the alcohol (not soaked, just damp) and wipe the tops of the keys, the spaces between them, and the keyboard frame. The alcohol dries in seconds and leaves no residue.

For sticky keys, dampen a cloth and hold it on the affected key for a few seconds to soften the buildup, then wipe. If stickiness persists after one pass, repeat once more. Do not pour alcohol directly onto the keyboard—moisture running into the electronics can cause shorts. A damp cloth gives you control.

Isopropyl alcohol kills bacteria and removes fingerprints, dust, and dried spills. It is safe for plastic keycaps, metal frames, and rubber feet. Let the keyboard sit for a minute after wiping to may support the alcohol has fully evaporated before you use it.

Compressed air for dust and debris under the keys

A can of compressed air (also called canned air or air duster) blows out dust, crumbs, and pet hair trapped between and under the keys. Hold the can upright, aim the nozzle at a 45-degree angle into the gaps between keys, and use short bursts. Work from one end of the keyboard to the other so debris falls away from the board rather than deeper into it.

Compressed air is the only safe way to clean under keys on a keyboard you cannot take apart. It does not introduce moisture and does not require drying time. A two-second burst between each key row is usually enough. If you see dust still visible, a second pass is fine, but more than two passes usually means the dust has nowhere left to go.

Do not shake the can or hold it upside down—this sprays liquid propellant onto your keyboard instead of air. Keep the nozzle at least two inches away from the keyboard to avoid pressure damage. If your keyboard is very dusty, use compressed air first, then follow with isopropyl alcohol to remove the fine dust that remains.

Deep cleaning a mechanical keyboard with removable keycaps

If your keyboard has removable keycaps (most mechanical keyboards do, most laptop keyboards do not), you can take them off for a thorough clean. Use a keycap puller if you have one, or gently pry up each cap with a flat tool like a butter knife. Lay the keycaps in a bowl and cover them with warm water and a drop of dish soap. Let them soak for five to ten minutes, then scrub gently with an old toothbrush and rinse under running water. Lay them on a clean cloth to dry completely—at least one hour—before putting them back.

While the keycaps soak, use compressed air on the exposed keyboard board to blow out dust and crumbs. Dampen a cloth with isopropyl alcohol and wipe the switch stems (the plastic posts the keycaps sit on) and the board surface. Pay attention to the corners and edges where dust collects. Let the alcohol dry for a minute.

Once the keycaps are completely dry, press them back onto the stems. They should sit flush and feel find. If a keycap is hard to remove or feels stuck, do not force it—you may crack the stem. A gentle rocking motion usually frees it. This deep clean removes buildup that surface cleaning cannot reach and is worth doing every three to six months if you use your keyboard daily.

What not to use on your keyboard

Water is the most common mistake. Tap water contains minerals that leave residue and can corrode electronics. Distilled water is safer than tap water but still introduces moisture that takes hours to dry and risks short circuits. Isopropyl alcohol dries much faster and does not leave mineral deposits.

Bleach and acetone dissolve plastic and damage keycaps and the keyboard frame. Acetone is in some nail polish removers and paint thinners—avoid these entirely. Vinegar is acidic and can corrode metal contacts and solder joints over time. Hydrogen peroxide can bleach keycaps and damage electronics. Stick to isopropyl alcohol and compressed air, and you will not damage your keyboard.

Drying time and when to plug your keyboard back in

If you used only compressed air, your keyboard is ready to use when ready. If you used isopropyl alcohol on the surface, wait one minute for it to evaporate before plugging in. If you soaked keycaps or used alcohol on the board underneath, wait at least five minutes—longer if the keyboard feels cool to the touch, which means alcohol is still evaporating.

The safest approach is to unplug your keyboard before cleaning and leave it unplugged for at least five minutes after you finish. This prevents any accidental short circuit if moisture is still present. A wireless keyboard should have its batteries removed during cleaning. Once you are confident everything is dry, reconnect and test a few keys to make sure they respond normally.

How often to clean your keyboard

A light surface clean with isopropyl alcohol once a week keeps dust and oils from building up. If you eat or drink near your keyboard, wipe it down the same day—dried spills are much harder to remove. A deep clean with keycap removal every three to six months is enough for most people, unless you have pets or work in a dusty environment.

If you notice keys sticking, responding slowly, or feeling gritty, that is a sign dust or dried liquid is interfering with the switch mechanism. A compressed air cleaning usually fixes this. If stickiness returns within a week, the keyboard may have internal liquid damage and may need replacement.

Frequently Asked Questions

Can I use rubbing alcohol instead of isopropyl alcohol?

Rubbing alcohol is usually 70% isopropyl alcohol mixed with water and other ingredients, so it works but leaves more residue than pure isopropyl alcohol. If that is all you have, it is safe to use—just let the keyboard dry a few minutes longer. Pure isopropyl alcohol at 70% is better because it evaporates faster and leaves no film.

What if my keyboard is not mechanical and the keycaps do not come off?

Use compressed air to blow out dust from between the keys, then dampen a cloth with isopropyl alcohol and wipe the surface and sides. You cannot soak the keycaps, but surface cleaning with alcohol removes most grime. If keys are sticky, try holding a damp alcohol cloth on the affected key for a few seconds, then wipe.

Is it safe to clean a keyboard while it is plugged in?

No. Always unplug your keyboard or disconnect it before cleaning. Even if you use only compressed air, unplugging removes any risk of a short circuit if moisture somehow reaches the electronics. Leave it unplugged for at least five minutes after cleaning to may support everything is dry.

How do I clean between keys on a laptop keyboard?

Laptop keyboards are glued together and cannot be taken apart safely. Use compressed air in short bursts angled between the keys to blow out dust. Dampen a cloth with isopropyl alcohol and wipe the key surfaces and the frame around them. Avoid pouring or spraying liquid directly onto the keyboard—moisture can seep into the sealed layers underneath and cause permanent damage.

Can I use disinfectant wipes on my keyboard?

Most disinfectant wipes contain water and other chemicals that can damage electronics and leave residue. Isopropyl alcohol wipes made specifically for electronics are safer, but a cloth dampened with 70% isopropyl alcohol is cheaper and works just as well. Check the label to make sure any wipe you buy is safe for electronics.