How to Clean a Keyboard Without Damaging It (Laptop and Desktop)

10-piece keyboard and electronics cleaning brush set

Crumbs, dust, pet hair and a mystery sticky spot: most keyboards collect all of it, and laptop keyboards are especially easy to ignore until a key starts to feel crunchy or stops responding. The fix is usually simple, but it is also easy to do wrong. Liquid in the wrong place or a harsh cleaner can do more damage than the crumbs ever did. Here is how to clean a keyboard without damaging it, step by step, for both laptops and desktop keyboards, based on what the manufacturers themselves recommend.

Before you start: power off and unplug

Every major manufacturer starts in the same place. Microsoft says to always disconnect the device, or remove the batteries from a wireless one, before you clean it (Microsoft Support). HP's guidance is to shut a laptop down completely, unplug the charger and disconnect accessories, and never clean it while it is on or plugged in (HP Tech Takes).

It protects the electronics, and it also stops you from typing a paragraph of gibberish into an open email while you scrub.

What you need

  • A set of soft brushes in a few sizes: a wide one for sweeping the surface and fine ones for gaps between keys
  • A soft, lint-free microfiber cloth
  • Cotton swabs for edges and corners
  • Compressed air (optional, but handy for stubborn debris)
  • 70% isopropyl alcohol or mild soap and water, applied to the cloth, never to the keyboard. Check your keyboard maker's guidance first, since recommendations vary by brand (more on that below).

How to clean a keyboard, step by step

  1. Shake out the loose stuff. Turn the keyboard (or the open laptop) upside down and tap it gently. Microsoft and Logitech both recommend this as the first step. Logitech warns that a hard whack can cause damage, so keep it gentle (Logitech).
  2. Brush between the keys. Use a soft brush to sweep along the rows, working crumbs and dust toward the edge of the keyboard. A fine brush gets into the narrow gaps a cloth cannot reach. Brush gently and never pry.
  3. Use compressed air for what is left. Hold the can upright and use short bursts. Logitech notes that tilting the can upside down can release the propellant as a liquid, which can cause cold burns, and recommends a well-ventilated area.
  4. Wipe the keys. Lightly dampen a microfiber cloth (moist, not dripping) and wipe each key and the surrounding surface. Never spray or pour anything directly onto the keyboard.
  5. Detail the edges. A barely damp cotton swab cleans around the edges of keys and along the frame.
  6. Let it dry completely. HP says to wait until all surfaces are fully dry before you open, plug in or turn on the laptop.

Laptop keyboards: the extra care they need

A laptop keyboard sits right on top of the computer itself, so moisture is the enemy. A few extra points:

  • Angle it for compressed air. For MacBook keyboards with an unresponsive or odd-feeling key, Apple's support guide describes holding the notebook at a 75-degree angle, using the straw on the can, keeping it about half an inch from the keys, and not inverting the can (Apple Support). Apple then has you spray left to right, rotate the laptop to its right side and repeat, then to its left side and repeat.
  • Do not forget the ports and vents. HP suggests gently brushing or blowing dust out of USB, HDMI and charging ports, and warns against inserting metal objects. A fine, soft brush is a safer choice than a paperclip or pin.
  • Skip the harsh stuff. HP advises against bleach, ammonia and acetone, and says not to use cleaners containing hydrogen peroxide on its products.

Desktop and mechanical keyboards

External keyboards follow the same basic routine: unplug or switch off, shake, brush, blow out, wipe, dry. Microsoft suggests an alternative to compressed air: gently vacuuming the top of the keyboard with a dusting brush attachment.

Some keyboards have removable keycaps for a deeper clean. If yours does, check the manufacturer's instructions before you pull anything off. Taking a photo of the layout first saves a lot of guesswork when you put it back together.

Which cleaner is safe? Check your brand

This is where guidance differs, so it is worth a quick look at your keyboard maker's support page:

  • Microsoft says an isopropyl alcohol solution of 70% or less, applied to a soft, lint-free cloth, is safe for its mice and keyboards. It also suggests mild soap and water on a cloth or swab.
  • HP recommends a mix of 70% isopropyl alcohol and 30% water on a microfiber cloth for most of its products, with exceptions for some coated surfaces.
  • Logitech suggests plain tap water on a lint-free cloth, fragrance-free disinfecting wipes, or alcohol swabs under 25% alcohol for sticky keys, and warns against bleach, acetone, nail polish remover, strong solvents and abrasives.

The common thread: a little liquid on a cloth, nothing harsh, and nothing poured or sprayed onto the keys.

How often should you clean your keyboard?

Microsoft suggests cleaning monthly or whenever needed. In practice, a quick 30-second brush-out once a week keeps crumbs from building up, and a full wipe-down once a month covers the rest. If you eat at your desk or share a computer, you may want to do it more often. HP recommends regularly cleaning shared devices such as keyboards and mice in homes and schools.

A simple tool that makes this a 2-minute job

Most of the work above is brushing, and the right brush makes the difference between pushing crumbs around and actually getting them out. Our 10-Piece Keyboard & Electronics Cleaning Brush Set gives you a mix of wide, soft and fine brushes for different jobs:

  • A soft fan brush that gets between keyboard keys
  • Fine brushes that reach into phone ports, vents and gaps
  • A soft round brush for dusting camera bodies and screens
  • Dry cleaning: no liquids needed for the brush-out step

Keep it on your desk and you will actually use it. It ships free in the US and comes with 30-day returns. As always, power devices off and brush gently.

Setting up a cleaner desk while you are at it? Our Flexible Gooseneck Phone Holder with Clamp keeps your phone off the keyboard and in view, and the USB COB LED Strip Light adds light to a dark desk. Browse more in Tech & Gadgets and Cleaning, or see what is trending on the Drop Board.

FAQ

Can I clean my keyboard with water?

Only on a cloth. Microsoft suggests a lint-free cloth or swab lightly dampened with mild soap and water, and Logitech suggests tap water on a lint-free cloth. Never pour water onto a keyboard or let it drip between the keys.

Is it safe to use rubbing alcohol on a keyboard?

For many keyboards, yes, if it goes on a cloth first. Microsoft and HP both describe 70% isopropyl alcohol on a cloth as safe for their products, while Logitech recommends alcohol swabs under 25% for its keyboards. Check your brand's guidance.

How do I clean under keys without removing them?

Turn the keyboard over and tap it gently, brush between the keys with a fine soft brush, then use short bursts of compressed air with the can held upright. For a MacBook, Apple describes holding the laptop at a 75-degree angle while you spray.

Can I use a vacuum on my keyboard?

Microsoft lists gently vacuuming the top of the keyboard with a dusting brush as an alternative to compressed air. Keep it gentle and avoid sucking up loose keycaps.

What should I never use to clean a keyboard?

Avoid bleach, acetone, ammonia, nail polish remover, strong solvents and abrasives, and do not spray any cleaner directly onto the keys. These are named in guidance from HP and Logitech.

Questions about our brush set?

Reach us at support@dailydropsco.com.