
How to Clean a Keyboard: Laptop, Mechanical and Membrane, Without Ruining It
Unplug it, blow out the debris with compressed air, wipe the keys with a lint-free cloth that is barely damp, and let it dry. The details change for a MacBook, a mechanical board and a spill, and Apple and Logitech disagree about alcohol. Here is what each maker actually says.
Tech Talk News Editorial
8 min read
Key takeaways
- To clean a keyboard, unplug it or power it off, remove loose debris with compressed air, wipe the keys with a soft lint-free cloth lightly dampened with water, and let it dry before reconnecting it.
- Apple says a 70% isopropyl alcohol wipe, 75% ethyl alcohol wipe or Clorox Disinfecting Wipe may gently wipe the keyboard, while Logitech lists alcohol swabs containing less than 25% concentration, so test any cleaner on a small spot first.
- For a MacBook from 2015 or a MacBook Pro from 2016, Apple’s method is compressed air with the straw about a half-inch away, the notebook held at a 75-degree angle, and sprays from left to right on three sides.
- Never spray liquid directly on a keyboard, submerge it, or use bleach, acetone, hydrogen peroxide, aerosol sprays, solvents or abrasives, which Apple and Logitech between them warn against.
- After a spill, power off and unplug at once. Apple says liquid damage is not covered by the Apple warranty or AppleCare Protection Plans.
On this page11 sections
To clean a keyboard, unplug it or power it off, blow out loose debris with compressed air, and wipe the keys with a soft, lint-free cloth lightly dampened with water. Let it dry fully before you reconnect it, and never spray liquid directly onto the keys.[2]
That is the safe core. What changes is the type of keyboard, what you use for stubborn grime, and what to do after a spill. This page follows what Apple and Logitech say in their own support pages, and says so when they disagree.
The safe steps for any keyboard
- Power down. If the keyboard is cabled, unplug it. If it has removable batteries, take them out. Logitech adds switching the device off and waiting 5 to 10 seconds before you start.[2] On a laptop, Apple says to shut down the computer and unplug the power adapter.[1]
- Knock out the loose debris. Tip the keyboard upside down and tap it gently. Crumbs and hair come out first.
- Use compressed air. Logitech says to use compressed air to remove loose debris and dust between the keys, and that cold air from a hair dryer works if you have no compressed air.[2] Keep the can upright.
- Wipe the keytops. Lightly moisten a soft, lint-free cloth with regular tap water and gently wipe down the keys.[2] Wring it out until it is barely damp.
- Deal with grime. For oily or sticky keys, use the stronger options in the next section, on a cloth, not on the keyboard.
- Dry, then reconnect. Wait until nothing is wet. Do not plug in a damp keyboard.
Apple's general rules cover every product it makes: use only a soft, lint-free cloth, avoid abrasive cloths and paper towels, avoid excessive wiping, keep moisture out of any opening, and do not spray cleaners directly onto the item.[1]
Alcohol, wipes and disinfectant: what the makers allow
Here the two companies differ, and it is worth knowing why before you pick a bottle.
Apple says a 70% isopropyl alcohol wipe, a 75% ethyl alcohol wipe or a Clorox Disinfecting Wipe may gently wipe the hard, nonporous surfaces of your Apple product, including the keyboard.[1] It adds that you should not use products containing bleach or hydrogen peroxide, and should not get moisture in any opening.[1]
Logitech's keyboard advice is more conservative. It lists fragrance-free disinfecting wipes, fragrance-free anti-bacterial wet wipes, makeup-removing tissue and alcohol swabs containing less than 25% concentration of alcohol.[2]
If the keys are still dirty, Logitech says you can usually use isopropyl alcohol or fragrance-free wipes with more pressure, but test it first on an inconspicuous spot, because it can cause discoloration or remove printing.[2]
Heads up
My rule: start with water on a cloth, move to a 70% isopropyl wipe only if the maker allows it (Apple does), and stop at the first sign of fading. Newer light keyboards, including the pale or colorful ones we looked at in our piece on colorful keyboards, show dirt sooner, so the weekly wipe matters more.
Laptop vs mechanical vs membrane: what differs
| Keyboard | Best first move | Be careful with |
|---|---|---|
| Laptop | Shut down, unplug the charger, use compressed air at an angle.[1,3] | Liquid. It runs under the keys into the machine. |
| Mechanical, desktop | Unplug, compressed air, damp cloth on the keytops.[2] | Alcohol on printed legends. Check the maker's guide before removing keycaps. |
| Membrane, desktop | Unplug, compressed air, damp cloth.[2] | Soaking. Moisture under the keys has nowhere to go. |
| Washable model | Follow the maker's washing steps exactly.[4] | Treating any other keyboard as washable. |
How to clean a MacBook or laptop keyboard
Apple publishes one method for a MacBook (2015 and later) or MacBook Pro (2016 and later) with an unresponsive key or a key that feels different. It is compressed air, and the straw matters: use the straw included with the can, keep its end about a half-inch from the keyboard, and do not invert the can while spraying.[3]
- Hold the Mac notebook at a 75-degree angle, so it's not quite vertical.
- Spray the whole keyboard, or just the affected keys, in a left-to-right motion.
- Rotate the notebook to its right side and spray again, left to right.
- Repeat with the notebook rotated to its left side.
If keys are still unresponsive after those steps, Apple says to visit an Apple Store or Apple Authorized Service Provider.[3] That page was published June 1, 2026. It gives no keycap-removal method for these keyboards, so don't pry keys off a MacBook.
For the outside of the laptop, Apple says to shut down and unplug the power adapter, then use a damp, soft, lint-free cloth, avoid openings, and skip aerosol sprays, solvents, abrasives and hydrogen peroxide cleaners.[1] The same care applies to the display, which has its own rules in our guide to cleaning a laptop screen.
Apple Magic Keyboard and other wireless keyboards
For Apple wireless or USB keyboards, Apple says to power the device off, remove removable batteries or unplug a wired one, then clean the outside with a lint-free cloth lightly moistened with water, with no moisture in openings.[1] Logitech gives the same power-off steps, and says not to put cleaning liquid on the device.[2]
How to clean a mechanical keyboard
Start with the same four steps: unplug, compressed air, damp cloth, dry. The difference with a mechanical keyboard is the gap between the keycaps, where debris collects on the plate under the switches.
Logitech publishes a separate guide for its mechanical gaming keyboards, and its general advice still applies, so check your maker's page before you decide to pull keycaps.[2,5]
If you do remove them, my habit is to photograph the layout first, wipe keycaps in a bowl of room-temperature water with a drop of dish soap, and let them air dry fully before putting them back. That is my habit, not a maker's instruction, so use the manual if you have one.
What to do after a spill
Speed matters more than technique. Power off and unplug right away, so a short circuit does not turn a wet keyboard into a dead one. Then follow your maker's guidance.
- Apple products: get help from an Apple Authorized Service Provider or Apple Store as soon as possible. Apple says liquid damage is not covered under the Apple product warranty or AppleCare Protection Plans, though you may have rights under consumer law.[1]
- Other keyboards: do not run the keyboard while it is wet. Logitech says not to plug a wet cable into your computer.[4] Let it dry overnight at the least. Logitech's washable model is told to air dry for 8 hours.[4]
- Sticky drinks: in my experience sugary liquid leaves residue that clean water or a damp cloth helps with, and a keyboard that stays sticky after drying needs a closer clean or replacement.
What not to use
Both makers publish a short list, and the two lists mostly overlap. Logitech says not to use bleach, acetone or nail polish remover, strong solvents or abrasives, not to put liquid directly on the device and never to submerge it.[2]
Apple says not to use aerosol sprays, bleaches or abrasives, avoid products containing hydrogen peroxide, and not to spray cleaners directly onto the item.[1]
- Bleach, hydrogen peroxide, acetone and nail polish remover.
- Aerosol sprays, strong solvents and abrasive cleaners or cloths.
- Paper towels, which Apple lists among abrasive items.
- Spraying the keyboard directly, or submerging it.
- A dishwasher, for a keyboard the maker has not called washable.
The one keyboard you can wash
Logitech calls its K310 hand-washable. The steps are specific: unplug it, cover the end of the USB cable with the attached cap, wash it with dish washing liquid and the keyboard brush, keep the water under 50°C (120°F) and no deeper than 30 cm (11 inches), and do not submerge the cable or use a dishwasher.[4]
Dry it at room temperature, air dry overnight (8 hours) and never use a hot-air dryer.[4] That is a feature of that model. Don't copy it for another keyboard.
How often to clean it
Logitech recommends a regular weekly cleaning to avoid hard-to-remove stains, and says to avoid greasy or pigmented snacks while typing and to remove ink from your hands with alcohol wipes before touching the keyboard.[6] A weekly wipe and an occasional air pass cost less than a replacement keyboard.
Takeaway
Power down, air first, damp cloth second, and test any alcohol on one key before you trust it. When a maker publishes a method for your keyboard, use theirs, and keep liquid out of the openings.
Primary sources
- 1.PrimaryApple Support, "How to clean your Apple products" (published November 12, 2026). General cleaning rules, 70% isopropyl and 75% ethyl alcohol wipes and Clorox Disinfecting Wipes, no aerosols, bleach, hydrogen peroxide or abrasives, Mac notebook exterior care, wireless keyboards, and liquid damage not being covered by the warranty.
- 2.PrimaryLogitech Support, "Cleaning your Logitech device": keyboard section. Unplug and switch off for 5 to 10 seconds, water on a lint-free cloth, compressed air or cold hair-dryer air, alcohol swabs containing less than 25% concentration, testing alcohol first, and the list of things not to use.
- 3.PrimaryApple Support, "How to clean the keyboard of your MacBook or MacBook Pro" (published June 1, 2026). The compressed-air method: straw about a half-inch away, can not inverted, notebook at a 75-degree angle, left-to-right sprays on three sides, and service if keys still fail.
- 4.PrimaryLogitech Support, "Cleaning the K310 washable keyboard". The washing steps for that one model: cap the USB cable, water under 50°C (120°F), no dishwasher, air dry for 8 hours and never plug in a wet cable.
- 5.PrimaryLogitech Support, "How to clean your Mechanical Gaming Keyboard". The maker’s dedicated mechanical keyboard guide, edited in February 2026. Its steps were not readable when I checked, so I used the general Logitech guidance instead.
- 6.PrimaryLogitech Support, "Taking care of your keyboard". Weekly cleaning, avoiding pigmented or greasy snacks, and removing ink with alcohol wipes before touching the keyboard.
Frequently asked questions
6 questions
What is the best way to clean a keyboard?
Unplug or power it off, use compressed air to remove loose debris, then wipe the keys with a soft lint-free cloth lightly dampened with water. Logitech recommends exactly this order for keyboards, and Apple adds that you should not get moisture into any opening. Let the keyboard dry fully before you plug it back in.
Can I use isopropyl alcohol to clean a keyboard?
Often yes, but the makers disagree, so test first. Apple says a 70% isopropyl alcohol wipe may gently wipe the keyboard. Logitech lists fragrance-free wipes or alcohol swabs containing less than 25% concentration for keyboards, and says to test rubbing alcohol on an inconspicuous area first because it can discolor or remove printing.
How do I clean a MacBook keyboard?
Use compressed air. Apple says to hold the Mac notebook at a 75-degree angle, spray the keyboard in a left-to-right motion, rotate the notebook to its right side and spray again, then repeat on the left side. Keep the straw about a half-inch from the keys and do not invert the can. If keys still fail, Apple says to visit an Apple Store or Authorized Service Provider.
Can I use compressed air on my keyboard?
Yes. Both Apple and Logitech recommend it. Apple says to use the straw that comes with the can, hold it about a half-inch from the keyboard and not to invert the can while spraying. Logitech says cold air from a hair dryer is an alternative if you do not have compressed air.
What should I never use to clean a keyboard?
Never use bleach, acetone or nail polish remover, strong solvents, hydrogen peroxide, aerosol sprays or abrasives, and never spray liquid straight onto the keys. Apple and Logitech both list these. Do not submerge a keyboard either, unless it is a model the maker says is washable.
What do I do if I spill liquid on my keyboard?
Power it off and unplug it right away. On an Apple product, Apple says to get help from an Apple Authorized Service Provider or Apple Store as soon as possible, because liquid damage is not covered under the warranty or AppleCare Protection Plans. For a cheap external keyboard, let it dry fully before using it again.
Keep reading
Written by
Tech Talk News Editorial
Computer engineering background. Writes about software, AI, markets, and real estate, and the places where the three meet.
About Tech Talk News

