Home / Tech
Tech

How to Clean a Keyboard Safely: Laptop and Desktop

Illustration for How to Clean a Keyboard Safely: Laptop and Desktop

Your keyboard collects crumbs, dust, skin oils and germs every day, and most of us never think about cleaning it until a key sticks. A quick clean makes typing more pleasant and helps the keyboard last longer. This guide explains how to clean a keyboard safely, whether it is a desktop keyboard or a laptop, using advice from Microsoft and Apple.

Illustration showing the main idea of How to Clean a Keyboard Safely: Laptop and Desktop

How often should you clean a keyboard?

Microsoft recommends cleaning its keyboards monthly or whenever needed. If you eat at your desk, share a computer or have pets that shed hair, a quick wipe once a week is sensible.

What you need

  • A can of compressed air, or a vacuum with a soft dusting brush
  • A soft, lint-free cloth
  • Cotton swabs
  • Mild soap and water, or isopropyl alcohol (IPA) of 70% or less
  • A keycap puller for a mechanical keyboard (optional)

How to clean a desktop or USB keyboard

  1. Disconnect the keyboard from the computer. For a wireless model, switch it off and remove the batteries.
  2. Turn it upside down and tap it gently to loosen crumbs and debris.
  3. Blow dust from the surface and between the keys with compressed air, or gently vacuum with a dusting brush.
  4. Lightly dampen a lint-free cloth or cotton swab with mild soap and water, then wipe the keys and the surface.
  5. For a deeper clean, use a lint-free cloth with isopropyl alcohol of 70% or less.
  6. Let everything dry completely before you reconnect the keyboard or put the batteries back.

Microsoft stresses one rule: never apply liquid directly to the keyboard. Always dampen the cloth, not the keys, and do not let water drip inside.

How to clean a laptop keyboard

Shut the laptop down and unplug the power adapter first. Apple’s advice for MacBook keyboards is to hold the laptop at a 75-degree angle, so it is nearly but not quite vertical, then use compressed air on the keyboard, or just the affected keys, in a left-to-right motion. Rotate the laptop to the right and repeat, then rotate it to the left and repeat. Keep the can upright and the nozzle a short distance from the keys.

Apple says that if keys are still unresponsive after cleaning, you should visit an Apple Retail Store or an Apple Authorised Service Provider. For other laptop brands, check the manufacturer’s support pages, as advice can differ between models.

Which cleaning products are safe?

Product Safe to use? Notes
Compressed air Yes Keep the can upright and the nozzle away from the keys
Mild soap and water on a lint-free cloth Yes Microsoft recommends it for keyboards; never apply liquid directly
Isopropyl alcohol of 70% or less on a cloth Yes Microsoft says an IPA solution of 70% or less is safe for its keyboards
Disinfecting wipes Check first Apple allows 70% isopropyl or 75% ethyl alcohol wipes on hard surfaces of Apple products, used gently
Bleach or hydrogen peroxide products No Apple says not to use cleaning products containing bleach or hydrogen peroxide
Soaking or submerging a keyboard No Moisture inside the keyboard can cause damage

Cleaning a mechanical keyboard

Mechanical keyboards have removable keycaps, which makes a deep clean easier. Take a photo of the layout first so you can put every key back in the right place, then lift the caps off with a keycap puller. Clean around the switches with compressed air and a soft brush, wipe the caps with a lightly dampened cloth, and let everything dry before refitting. Some repair guides use stronger alcohol on a cloth, but it is safest to follow your manufacturer’s advice.

Checklist-style illustration for How to Clean a Keyboard Safely: Laptop and Desktop

Sticky keys and spills

For a sticky key, dip a cotton swab in isopropyl alcohol of 70% or less, squeeze out the excess and gently wipe around the edges of the key. If you spill a drink, switch the device off and unplug it straight away, keep it upside down so liquid drains away from the electronics, and ask the manufacturer or a repair shop for advice if it does not work again after drying.

How to keep your keyboard clean

  • Avoid eating and drinking over the keys.
  • Wash your hands before long typing sessions.
  • Use a thin silicone cover if you often spill things.
  • Close the laptop lid when you move it, so dust cannot settle.
  • Add keyboard cleaning to your monthly tidy-up routine.

If you are tidying your desk setup at the same time, you might find our guides on fixing a printer that shows offline in Windows 11, resetting your router and stopping Windows updates useful.

FAQ

How do I clean a keyboard without compressed air?

Turn the keyboard upside down and tap it gently, then use a vacuum with a soft dusting brush, as Microsoft suggests. A clean paintbrush also works for sweeping out dust.

Can I use disinfectant wipes on my keyboard?

Only if your manufacturer allows it. Apple says that 70% isopropyl or 75% ethyl alcohol wipes can be used gently on hard surfaces of Apple products, but not products with bleach or hydrogen peroxide. Wring out any excess liquid first.

Can I wash a keyboard under the tap?

No. Water can damage the electronics. Wipe it with a lightly dampened cloth, and wash only removable keycaps from mechanical keyboards in warm, soapy water if the manufacturer says it is safe.

How do I clean a MacBook keyboard?

Hold the laptop at about 75 degrees and use compressed air in a left-to-right motion, then repeat with the laptop turned to each side, as Apple recommends.

Why are my keys still sticking after cleaning?

There may be residue under the key or a hardware fault. Try a swab with a little isopropyl alcohol around the edges, and contact the manufacturer or an authorised repairer if the problem continues.